Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: chapter8 batch processing #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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