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

Introduction to neural networks: 35. Notebook: Analyzing Student Data: error_term_formula solution #409

Open
scmanjarrez opened this issue Feb 28, 2023 · 0 comments

Comments

@scmanjarrez
Copy link

Why you multiply the sigmoid_prime(x) by x? You defined backpropagation error as (π‘¦βˆ’π‘¦Μ‚)πœŽβ€²(π‘₯) in the notebook:
Your solution:

def error_term_formula(x, y, output):
#    for binary cross entropy loss
    return (y - output)*x
#    for mean square error
#    return (y - output)*sigmoid_prime(x)*x

Notebook definition:

TODO: Backpropagate the error

Now it's your turn to shine. Write the error term. Remember that this is given by the equation
(π‘¦βˆ’π‘¦Μ‚)πœŽβ€²(π‘₯)

You even had (y - output)*sigmoid_prime(x) as the solution, but then you changed it to (y - output)*sigmoid_prime(x)*x in this commit

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

No branches or pull requests

1 participant