-
Notifications
You must be signed in to change notification settings - Fork 1
Release 1
Preston Tranbarger edited this page Feb 20, 2019
·
23 revisions
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.
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]
Released 2/15/19 by QPU Misaligned