1.2.7 • Published 2 years ago

billy-brain v1.2.7

Weekly downloads
4
License
ISC
Repository
github
Last release
2 years ago

Billy's Brain

Description

Little project to learn how works neural networks

Installation from npm

npm i -s billy-brain

Installation from github

git clone https://github.com/LordPax/neural-network.git && cd neural-network
npm install
npm run build
npm start

Example of script

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))

Activation function

NameGraphEquation
ReLuReLuReLu
HeavisideHeavisideHeaviside
SigmoidSigmoidSigmoid
Tangente hyperboliquetanhtanh
1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago