https://github.com/developer239/neural-network-playground
Collection of simple neural network examples.
https://github.com/developer239/neural-network-playground
Last synced: 7 months ago
JSON representation
Collection of simple neural network examples.
- Host: GitHub
- URL: https://github.com/developer239/neural-network-playground
- Owner: developer239
- Created: 2017-10-07T15:10:47.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-18T21:19:59.000Z (almost 8 years ago)
- Last Synced: 2025-01-04T21:41:48.574Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 457 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Neural Network Playground
#### Addition
Simple [neataptic.js](https://github.com/wagenaartje/neataptic) script that knows how to add up to ten.
More information can be found here: https://wagenaartje.github.io/neataptic/docs/tutorials/training/
```
$ node addition
```
#### NEAT XOR
Advanced example of neural evolution genetic algorithm that learns how to solve basic XOR inputs.
Simple [neataptic.js](https://github.com/wagenaartje/neataptic) solution would look like this:
```
// this network learns the XOR gate (through neuro-evolution)
var network = new Network(2,1);
var trainingSet = [
{ input: [0,0], output: [0] },
{ input: [0,1], output: [1] },
{ input: [1,0], output: [1] },
{ input: [1,1], output: [0] }
];
await network.evolve(trainingSet, {
equal: true,
error: 0.03
});
```
More complicated solution implemented in `neatXOR/genetic.js` lets us take advantage of dynamic neural network programming.
In order to run the example paste following command into console
```
$ node neatXOR
```