-
Notifications
You must be signed in to change notification settings - Fork 1
Release 1
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.
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()
There are no parameters for this method.
This method returns the object’s stored value for the array nodes, an array which contains the number of nodes in each layer.
nn = basicNeuralNet([2, 3, 1], 0.1)
nn.getNodes()
This returns: [2, 3, 1]
getLearningRate()
There are no parameters for this method.
This method returns the objects stored value for the learning rate, a number which dictates the rate of stochastic gradient decent.
nn = basicNeuralNet([2, 3, 1], 0.1)
nn.getLearningRate()
This returns: 0.1
Released 2/15/19 by QPU Misaligned