Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gsteixeira/neuralnetwork-javascript
A simple neural network in Javascript / Node.js
https://github.com/gsteixeira/neuralnetwork-javascript
javascript machine-learning neural-network nodejs
Last synced: about 5 hours ago
JSON representation
A simple neural network in Javascript / Node.js
- Host: GitHub
- URL: https://github.com/gsteixeira/neuralnetwork-javascript
- Owner: gsteixeira
- Created: 2021-10-03T18:26:01.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-03T18:34:29.000Z (about 3 years ago)
- Last Synced: 2023-12-14T16:57:42.637Z (11 months ago)
- Topics: javascript, machine-learning, neural-network, nodejs
- Language: JavaScript
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# A Neural Network in Javascript
Simple feed forward neural network in Javascript
## usage:
To run on console (need to have nodejs):
```shell
make
# or
nodejs neural.js
```You can also import to html, then see results at console.
## Create a neural network:
Create a network telling the size (nodes) of earch layer.
```javascript
var inputs = [[0.0, 0.0],
[1.0, 0.0],
[0.0, 1.0],
[1.0, 1.0]]
var outputs = [[0.0], [1.0], [1.0], [0.0]]nn = new NeuralNetwork(2, 1, 4);
nn.train(inputs, outputs, 10000);
```## To be done
- Allow to use different logistical functions, like ReLU.
- Make it a reusable javascript tool that can be used by webpages.