Little project to learn how works neural networks
npm i -s billy-brain
git clone https://github.com/LordPax/neural-network.git && cd neural-network
npm install
npm run build
npm start
import { NeuralNetwork, ReLu, Sig, Tanh, Heaviside } from 'billy-brain'
const neural:NeuralNetwork = new NeuralNetwork(4)
neural.addLayer(6)
neural.addLayer(4)
neural.addLayer(2)
neural.addLayer(3)
neural.addLayer(5)
const input:number[][] = [[2], [1], [4], [6]]
console.table(neural.calculate(input, Tanh, Heaviside))
neural.mutate()
console.table(neural.calculate(input, Tanh, Heaviside))
Name | Graph | Equation |
---|---|---|
ReLu | ||
Heaviside | ||
Sigmoid | ||
Tangente hyperbolique |