Chapter 7. Python Bindings

These functions allow you to interact with the FANN library from Python.

This extension requires the FANN library, version 1.1.0 or later.

This python binding is provided by Vincenzo Di Massa (hawk.it@tiscalinet.it) and updated by Gil Megidish (gil@megidish.net)

7.1. Python Install

Make sure to make and install the fann library first. Make sure that you have swig and python development files installed. Perhaps change the include directory of python. Then run 'make' to compile in the python directory.

Copy the generated _fann.so and fann.py files to python modules or into working directory.

After the install, just import fann and all the C functions will be available to your python code.


SourceForge.net Logo