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

book 1, page 447, formula 13.69 #658

Open
g-i-o-r-g-i-o opened this issue Oct 10, 2024 · 0 comments
Open

book 1, page 447, formula 13.69 #658

g-i-o-r-g-i-o opened this issue Oct 10, 2024 · 0 comments

Comments

@g-i-o-r-g-i-o
Copy link

g-i-o-r-g-i-o commented Oct 10, 2024

I'm sorry, but I can't understand if the dimensions of the Jacobian and of the gradient are correct.

canccc

Issue:
The number of columns in J_l (nl) does not match the number of rows in g_l+1 (nl+1). This mismatch means that the matrix multiplication cannot be performed directly.

Assume the following layer dimensions:

Layer l: nl neurons
Layer l+1: nl+1 neurons

Given these, the shapes of the components are:

Gradient Vector at Layer l+1:
g_l+1 = dL / dz_l+1 
Shape: (nl+1, 1)

Jacobian Matrix J_l:
J_l = dz_l+1 / dz_l 
Shape: (nl+1, nl)

Gradient Vector at Layer l:
dL / dz_l 
Shape: (nl, 1)

The formula involves multiplying J_l with g_l+1:

J_l * g_l+1 
Shape: (nl+1, nl) * (nl+1, 1)
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