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

第一张第4周作业答案有问题 #5

Open
asuka08 opened this issue Aug 3, 2018 · 0 comments
Open

第一张第4周作业答案有问题 #5

asuka08 opened this issue Aug 3, 2018 · 0 comments

Comments

@asuka08
Copy link

asuka08 commented Aug 3, 2018

01-Neural Networks and Deep Learning/week4/answer-Building your Deep Neural Network-Step by Step.ipynb
函数 L_model_backward 中有一段for循环

for l in reversed(range(L-1)):
    current_cache = caches[L - 2 - l]
    dA_prev_temp, dW_temp, db_temp = linear_activation_backward(grads["dA" + str(L)], current_cache, activation = 'relu')

我感觉有点问题。
我的答案是

for l in reversed(range(L - 1)):
    current_cache = caches[l]
    dA_prev_temp, dW_temp, db_temp = linear_activation_backward(grads["dA" + str(l + 2)], current_cache, "relu")

你认为呢?

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