n42
n42 is the deep learning module for nodejs.
How to install
$ npm install n42
Getting started
var n42 = ; // input data// This is made of sylvester matrixvar input = ; // label data// This is made of sylvester matrixvar label = ; var sda = input label 4 3 3 2; // Training all hidden layerssda; // Tuning output layer which is composed of logistics regressionsda; // Test datavar data = ; console; /** * Predict answers * [0.9999998973561728, 1.0264382721184357e-7] ~ [1.0, 0.0] * [4.672230837774381e-28, 1] ~ [0.0, 1.0] */
Algorithms
Class | Implemented algorithm |
---|---|
NN | Neural Network |
LogisticsRegression | Logistics Regression |
SdA | Stacked denoised Autoencoder |
DBN | Deep Belief Nets |
API Docs
LICENSE
MIT License. Please see the LICENSE file for details.