Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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.