NNet-TypeScript
A simple Neural Network library written in TypeScript. This project was initially written in Action Script 3 as part of this project: https://github.com/s-soltys/LipSync
Neural Network implementaiton
This implementation is a neural network with a single hidden layer. Neurons have a sigmoid activation function (https://en.wikipedia.org/wiki/Sigmoid_function) The backpropagation algorithm is used as the training function.
How to install
npm install --save nnet-typescript
How to use
Example implementation of a XOR function:
// Create the Neural Network; // XOR truth table; // training the network using the generated patterns// Training parameters:// Pattern generation function, shuffle patterns in each epoch, number of epochs, learning rate, target MSEnnet.trainpatterns, true, 2000, 08, 0001; // Expected results;assertNetworkResultnnet, , 0, delta;assertNetworkResultnnet, , 1, delta;assertNetworkResultnnet, , 1, delta;assertNetworkResultnnet, , 0, delta;