Skip to content
forked from mrkwjc/ffnet

Feed-forward neural network for python

License

Notifications You must be signed in to change notification settings

GMAO-SI-Team/ffnet

 
 

Repository files navigation

ffnet: feed-forward neural network for python

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.

About

Feed-forward neural network for python

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 84.9%
  • C 14.7%
  • Batchfile 0.4%