You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
self.weights[layer][prev_neuron, next_neuron] +=activations[layer-1][prev_neuron] *deltas[layer][next_neuron] # and this
136
+
self.weights[layer][prev_neuron, next_neuron] +=learning_rate*activations[layer-1][prev_neuron] *deltas[layer][next_neuron] # and this
137
137
138
138
# Update output weights
139
139
foroutputinrange(self.num_outputs):
140
140
forprev_neuroninrange(self.neurons_per_layer):
141
-
self.weights[self.num_hidden_layers][prev_neuron, output] +=activations[self.num_hidden_layers-1][prev_neuron] *deltas[self.num_hidden_layers][output] # and this
141
+
self.weights[self.num_hidden_layers][prev_neuron, output] +=learning_rate*activations[self.num_hidden_layers-1][prev_neuron] *deltas[self.num_hidden_layers][output] # and this
142
142
143
143
# doesn't return anything (weights update in place)
144
144
145
145
146
146
147
147
# Train a network by repeatedly backpropagating all the examples
0 commit comments