Skip to content

This project is a simple neural network maden in javascript as known as MLP(Multilayer Perceptron) also.

License

Notifications You must be signed in to change notification settings

JBezerra/Deep-Feedfoward-Neural-Network

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deep Feedfoward Neural Network

This project is a simple neural network made in javascript as known as MLP(Multilayer Perceptron) also.

DFF

How can I use?

MNIST Example:

You can check a example of usage with MNIST Dataset to recognize handwritten human digits.

mnist

Create the Neural Network Object

You have to provide in order: Inputs, Hidden Layers, Output

var nn = new NeuralNetwork(2,4,1);

Train your Neural Net

Feed the training data with the expected label

nn.train([0,0],[0]);
nn.train([1,0],[1]);
nn.train([0,1],[1]);
nn.train([1,1],[0]);

After enough trainning. Predict the output.

nn.predict([0]);

// console.log: 0.00342487123987

How it works?

Long story short, a neural network is a universal function aproximator. If you would like to understand better, I really recommend you some articles:

Deep Learning Book - MLP

Wikipedia - MLP

And 3Blue1Brown video serie about neural networks:

But what is a Neural Network?

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

About

This project is a simple neural network maden in javascript as known as MLP(Multilayer Perceptron) also.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published