Little example of a neural network programmed from scratch using math.js
let brain = new NeuralNetwork(input_nodes, hidden_nodes, output_nodes, learning_rate);
Example
let brain = new NeuralNetwork(2, 16, 3, 0.1);
let inputs = [in_1, in_2];
//Make a prediction
let prediction = brain.query(inputs);
//Train
let expectedOutput = [out_1, out_2, out_3];
brain.train(inputs, expectedOutput);
Rashid, T. Make your own neural network. (http://makeyourownneuralnetwork.blogspot.com/)
Daniel Shiffman [The Coding Train] - Session 4 - Neural Networks - Intelligence and Learning. (https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Y7MdSCaIfsxc561QI0U0Tb)
This project is under the MIT License - see the file LICENSE.md for details.
With ❤️ by motiontx 😊