A javascript library to create neural networks with!
- neural network class that adapts to data
- customize hidden layers
- Optimizers:
- Stochastic Gardient Descend (SGD)
Install with npm
npm install neural.js --save
import neural from "neural.js"
// XOR data
const data = [
{input: [0, 0], output: [0]},
{input: [0, 1], output: [1]},
{input: [1, 0], output: [1]},
{input: [1, 1], output: [0]},
]
const net = new neural.Network({
learningRate: 0.04,
iterations: 10000,
hiddenLayers: [4, 4]
})
net.train(data)
net.run(data.input[0]) // 0.02
Articles I found useful: