Skip to main content

Feed-forward neural network solution for python

Project description

“ffnet” is a fast and easy-to-use feed-forward neural network training solution for python. Many nice features are implemented: arbitrary network connectivity, automatic data normalization, very efficient (also parallel) training tools, network export to fortran code…

Basic usage of the package is outlined below:

>>> 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. ] )

Project details


Download files

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

Source Distributions

ffnet-0.7.zip (64.6 kB view details)

Uploaded Source

ffnet-0.7.tar.gz (59.5 kB view details)

Uploaded Source

File details

Details for the file ffnet-0.7.zip.

File metadata

  • Download URL: ffnet-0.7.zip
  • Upload date:
  • Size: 64.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ffnet-0.7.zip
Algorithm Hash digest
SHA256 ba65eca5aaedb3f0018121dbc31f77f1695621b79a7681eb6ceeff631c01e851
MD5 b05e59de69d34ee9d9c16d27b23bbdd3
BLAKE2b-256 fc3f424abca5b891a7bd85de52c9ce7af532746d67e410bb7eaa20087851dee2

See more details on using hashes here.

File details

Details for the file ffnet-0.7.tar.gz.

File metadata

  • Download URL: ffnet-0.7.tar.gz
  • Upload date:
  • Size: 59.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for ffnet-0.7.tar.gz
Algorithm Hash digest
SHA256 6b6ba76e039ab03fe147bcd2edd11fe621b90aec313d1a1dbea7f09f48cc165d
MD5 37896fab8bb21fefdfd0483cdc3b62aa
BLAKE2b-256 ff6690321c04d38be55234071b1299e163ef3be3d438ac59a0a1d50c23ca2267

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page