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

minor fixes in MLP backprop #9

Merged
merged 2 commits into from Dec 7, 2021

Conversation

navivokaj
Copy link
Contributor

Hi Arthur, nice work on Deep Course! I was going through it to have a refresher on CV and noticed some potential errors on mlp.py:

  1. the softmax in self.fit is redundant since it was already performed in self.forward to produce the probs
  2. grad_bh depends on grad_htilde, not grad_h, since tanh is performed on XW+b

@arthurdouillard
Copy link
Owner

Oops, you're right. Thanks for the catch!

@arthurdouillard arthurdouillard merged commit c5385e7 into arthurdouillard:master Dec 7, 2021
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.

None yet

2 participants