Skip to main content

Feed-forward neural network solution for python

Project description

Basic usage of the package:

>>> from ffnet import ffnet, mlgraph, savenet, loadnet, exportnet
>>> conec = mlgraph( (2,2,1) )
>>> net = ffnet(conec)
>>> input = [ [0.,0.], [0.,1.], [1.,0.], [1.,1.] ]
>>> target  = [ [1.], [0.], [0.], [1.] ]
>>> net.train_tnc(input, target, maxfun = 1000)
>>> net.test(input, target, iprint = 2)
>>> savenet(net, "xor.net")
>>> exportnet(net, "xor.f")
>>> net = loadnet("xor.net")
>>> answer = net( [ 0., 0. ] )
>>> partial_derivatives = net.derivative( [ 0., 0. ] )

For instalation instructions and documentation go to http://ffnet.sourceforge.net.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ffnet, version 0.8.4
Filename, size File type Python version Upload date Hashes
Filename, size ffnet-0.8.4-py2.7-linux-x86_64.egg (348.6 kB) File type Egg Python version 2.7 Upload date Hashes View hashes
Filename, size ffnet-0.8.4-py2.7-win-amd64.egg (311.1 kB) File type Egg Python version 2.7 Upload date Hashes View hashes
Filename, size ffnet-0.8.4-py3.5-linux-x86_64.egg (359.9 kB) File type Egg Python version 3.5 Upload date Hashes View hashes
Filename, size ffnet-0.8.4-py3.6-linux-x86_64.egg (360.7 kB) File type Egg Python version 3.6 Upload date Hashes View hashes
Filename, size ffnet-0.8.4-py3.7-linux-x86_64.egg (355.0 kB) File type Egg Python version 3.7 Upload date Hashes View hashes
Filename, size ffnet-0.8.4.tar.gz (55.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page