Skip to content

Little project to learn how works neural networks

Notifications You must be signed in to change notification settings

LordPax/neural-network

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Name Graph Equation
ReLu ReLu ReLu
Heaviside Heaviside Heaviside
Sigmoid Sigmoid Sigmoid
Tangente hyperbolique tanh tanh

About

Little project to learn how works neural networks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published