Skip to content

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

Open
@scmanjarrez

Description

@scmanjarrez

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions