Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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