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

Calculating dz2 in batch training #1

Open
jezek opened this issue Aug 16, 2020 · 2 comments
Open

Calculating dz2 in batch training #1

jezek opened this issue Aug 16, 2020 · 2 comments

Comments

@jezek
Copy link

jezek commented Aug 16, 2020

Hello. Investigating your blog, I've stumbled upon this line in training function:

" dz2 = a2 - y[j] # 1x1\n",

If following the math background of your source, they compute the output layer delta (in your case dz2) as δx,L=∇aCx⊙σ′(zx,L), which should be translated to your code as:

 dz2 = np.multiply(a2 - y[j], sigmoid(a2, derv=True)) # 1x1 .* 1x1 = 1x1
 

Or am I missing something?

Thank you for your time (and repo) and I'm looking forward for your answer.

@morvin117
Copy link

morvin117 commented Aug 16, 2020 via email

@jezek
Copy link
Author

jezek commented Aug 16, 2020

@morvin117

Sorry? you have send your messege to wrong e-майл, re-send it to write man/ Goog luck !          

I did not send email. I wrote an issue to @Frixoe github repo xor-neural-network. Maybe you are watching the repository and you got notification from github to your email.

Thank you for your concerns and have a nice life. 😉

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

2 participants