Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alcalyn/neural-network
Create a multilayer perceptron and make it learn life.
https://github.com/alcalyn/neural-network
Last synced: 4 days ago
JSON representation
Create a multilayer perceptron and make it learn life.
- Host: GitHub
- URL: https://github.com/alcalyn/neural-network
- Owner: alcalyn
- License: mit
- Created: 2017-03-30T16:52:54.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-04-11T16:13:38.000Z (over 7 years ago)
- Last Synced: 2024-10-11T13:12:28.441Z (28 days ago)
- Language: PHP
- Homepage:
- Size: 28.3 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Neural network
==============Create a multilayer perceptron and make it learn.
## Usage
``` php
use Alcalyn\NeuralNetwork\Network;# Creates a new multilayer perceptron
$network = new Network([2, 4, 1]);# Takes an input and let it cogitate
$network->pulseInput([1, 0]); # Returns an array as output# Takes an array of tuples input/expected output
# and adjust the network one iteration to adapt the output the expected result
$network->trainInput([[1, 0], [1]]); # Returns an array as output
```## Examples
- [Learning logical gate](examples/learn-logical-gate)
- [Number recognition](examples/number-recognition)## License
This library is under [MIT License](LICENSE).