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]

getLearningRate()

Parameters

getLearningRate()

There are no parameters for this method.

Return

This method returns the objects stored value for the learning rate, a number which dictates the rate of stochastic gradient decent.

Example

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

This returns: 0.1

More coming later...

Released 2/15/19 by QPU Misaligned

Clone this wiki locally