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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ffnet-0.8.6.tar.gz
(60.1 kB
view details)
File details
Details for the file ffnet-0.8.6.tar.gz
.
File metadata
- Download URL: ffnet-0.8.6.tar.gz
- Upload date:
- Size: 60.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 38cc3a8dd15fcc1d84f7f883f3b2f270e2a8a0cd00cbdfe8a56bfea0a9794074 |
|
MD5 | f1baf9037e910a613949c7cdc2739479 |
|
BLAKE2b-256 | 7fa56bd13ed62c4dfbc60c055ca747a72c68a1711ff6e5dfd7b685414b3e084c |