Skip to content

Conversation

andreinechaev
Copy link

No description provided.

@JorgeDuenasLerin
Copy link

Hi! I agree with this pull request. Doing the batch update like this commit is more consistent with the explanations and the network learning process is much fast. I will change the calculation of layer_2_delta too.

from:
layer_2_delta = (labels[batch_start:batch_end]-layer_2)

to:
layer_2_delta = (layer_2-labels[batch_start:batch_end])

and the weights update:

weights_1_2 -= alpha * layer_1.T.dot(layer_2_delta)
weights_0_1 -= alpha * layer_0.T.dot(layer_1_delta)

In order to be more consistent with previous chapters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants