Methods
|
|
__init__
backpropagate
update
|
|
__init__
|
__init__ (
self,
num_nodes,
next_layer,
)
Initialize the input layer.
Arguments:
|
|
backpropagate
|
backpropagate (
self,
outputs,
learning_rate,
momentum,
)
Recalculate all weights based on the last round of prediction.
Arguments:
learning_rate -- The learning rate of the network
momentum - The amount of weight to place on the previous weight
change.
outputs - The output info we are using to calculate error.
|
|
update
|
update ( self, inputs )
Update the values of the nodes using given inputs.
Arguments:
Exceptions
|
|
ValueError( "Inputs do not match input layer nodes." )
|
|
|