Skip to content

a simple to use, plain js machine learning library for multilayer neural networks

Notifications You must be signed in to change notification settings

VinzSpring/FFNN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FFNN

Travis Travis

...is a deep learning library aimed to the purpose of understanding the basics of multilyer artificial neural networks.

super simple to use!

//create a new feed forward network
let nn = new NeuralNetwork();

//add an input layer
//dwefault activation function is sigmoid
nn.add_layer(new Layer(2));

//add as many deep layers as you want!
nn.add_layer(new Layer(6));
//use whatever activation function you want
//to make your own activation look at the prototype "ActivationFunction"
nn.add_layer(new Layer(3, Tanh));

//add an output layer
nn.add_layer(new Layer(1));

//set the learning rate, default is 0.1
nn.setLearningRate(0.3);

//train using input data and excpected output, returns the prediction
nn.train(input_array, target_array);

//predict value
let prediction = nn.predict(input_array);

//have fun, make something cool

Samples

  • XOR-Example ... a simple example teaching a network the XOR function ... integrated web-UI for layer visualization and parameter modification

About

a simple to use, plain js machine learning library for multilayer neural networks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published