megatron-me-uk / fann2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fann2

Python bindings for Fast Artificial Neural Networks 2.2.0 (FANN 2.2.0).

DESCRIPTION

This is a python binding for Fast Artificial Neural Network Library (FANN 2.2.0) that implements multilayer artificial neural networks with support for both fully connected and sparsely connected networks. It includes a framework for easy handling of training data sets. It is easy to use, versatile, well documented, and fast.

FANN 2.2.0 source: http://sourceforge.net/projects/fann/files/fann/2.2.0/FANN-2.2.0-Source.zip/download

Depending on OS, could be required do:

cmake -D CMAKE_INSTALL_PREFIX:PATH=/usr .

For more details see http://leenissen.dk/fann/wp/help/installing-fann/

INSTALLATION

Before install the fann2 bindings from pip ensure you have FANN 2.2.0 software installed and this libs are accesible in OS to other softwares.

You can install fann2 from pypi, using either pip or easy_install:

$ pip install fann2

or

$ easy_install fann2

USAGE

Just

>> from fann2 import libfann

and then create libfann.neural_net and libfann.training_data objects

>> ann = libfann.neural_net()
>> train_data = libfann.training_data()

Look at the examples at the FANN documentation and its C++ bindings for further reference.

About

License:GNU Lesser General Public License v2.1


Languages

Language:C++ 50.6%Language:C 48.2%Language:Python 1.3%