Skip to content

Release 1

Preston Tranbarger edited this page Feb 20, 2019 · 23 revisions

Release 1

Constructor

Parameters

basicNeuralNet(nodes, learningRate)

The constructor passes 2 parameters: an array containing the amount of nodes in each layer, and a number that dictates the learning rate in stochastic gradient decent.

Example

nn = basicNeuralNet([2, 3, 1], 0.1)

This creates a object of basicNeuralNet with 2 nodes in its input layer, 3 nodes in its 1st intermediate layer and 1 node in its output layer, and it sets the learning rate to be 0.1.

getNodes()

Parameters

getNodes()

There are no parameters for this method

Return

This method returns the object’s stored value for the array nodes, an array which contains the number of nodes in each layer.

Example

nn = basicNeuralNet([2, 3, 1], 0.1)
nn.getNodes()

This returns: [2, 3, 1]

Released 2/15/19 by QPU Misaligned

Clone this wiki locally