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

Wrong formula in back-propagating #2

Open
A-Soltani opened this issue Mar 23, 2020 · 0 comments
Open

Wrong formula in back-propagating #2

A-Soltani opened this issue Mar 23, 2020 · 0 comments

Comments

@A-Soltani
Copy link

I inspected whole of the code, but I guess there is a mistake in this line.
As far as I am concerned, the cost function used in your code is:

Therefore, If you are going to follow delta rule, the data needed for back-propagation is:

But in your code it is:

The difference between them is sigmoid function.
I think there is a small mistake in this line.

layer_2_deltas.append((layer_2_error)*sigmoid_output_to_derivative(layer_2))

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