A class to handle neural networks.
alphaNumber learning rate of this network (optional, default0.1)
Meta
- since: 1.0.0
- author: Maxine Michalski
Adds an additional layer to this network. Only two layers are supported. Look at tests for examples of layer descriptions.
layerObject Layer description for creation.
Returns undefined
Meta
- author: Maxine Michalski
Run (forward propagate) through a network.
inputsArray Array that contains input values
Returns Matrix result of forward propagation
Meta
- author: Maxine Michalski
Trains a network on parameters. For an example of train parameters, look into tests
paramsObject Object that describes train parameters and contains train data
Returns undefined
Meta
- author: Maxine Michalski
Matrix class
Meta
- since: 1.0.0
- author: Maxine Michalski
Randomize weights
Returns Float64Array randomized array
Meta
- author: Maxine Michalski
Get a value out of this matrix
Returns Number Value of specified cell
Meta
- author: Maxine Michalski
set a value out of this matrix
rowNumber Row of matrix to set value ofcolNumber Column of matrix to set value ofvalNumber Value to set cell
Returns undefined
Meta
- author: Maxine Michalski
Saves matrix to a JSON representation
Returns Object JSON representation of Matrix object
Meta
- author: Maxine Michalski
Update matrix with delta values and considering a learning rate alpha
alphaNumber Learning rate to use
Returns undefined
Meta
- author: Maxine Michalski
Loads a matrix from a JSON representation
jsonObject JSON representation of a matrix
Returns Matrix restored matrix
Meta
- author: Maxine Michalski
Graph class
needs_backpropBoolean An indicator if this graph needs backpropagation or not (optional, defaultfalse)
Meta
- since: 1.0.0
- author: Maxine Michalski
A method to backpropagate through a network
Returns undefined
Meta
- author: Maxine Michalski
Matrix multiplication
Returns Matrix product of the two matrices
Meta
- author: Maxine Michalski
Adds two matrices together
Returns Matrix sum of the two matrices
Meta
- author: Maxine Michalski
A method to apply the sigmoid (softstep) function on a matrix
m1Matrix Matrix to apply sigmoid on
Returns Matrix sigmoid applied matrix
Meta
- author: Maxine Michalski
A method to apply the tanh function on a matrix
m1Matrix Matrix to apply tanh on
Returns Matrix tanh applied matrix
Meta
- author: Maxine Michalski
A method to apply the relu function on a matrix
m1Matrix Matrix to apply sigmoid on
Returns Matrix relu applied matrix
Meta
- author: Maxine Michalski