I am getting below error ,
Moderator Edit: Solution Code Removed.
please help me to resolve this issue
Thank you verymuch
I am getting below error ,
please help me to resolve this issue
Thank you verymuch
First, please note that sharing your code is not allowed by the community code of conduct. Second, what is the representation of the last layer (where you applied sigmoid)? Is it l
or L
?
it is variable l ,
next onwards i never share code
No, itâs not l
. Think about it. We use sigmoid for the last layer, right? So, how we represent the last layer? Hint: Check the range of for loop.
#AL, cache =linear_activation_forward(A_prev,parameters[âWâ +
str(L)],parameters[âbâ + str(L)], activation=âsigmoidâ)
but after using L ,
iam getting beow error
Please share full error.
You are still making a mistake. For the last layer, the input is the âoutput of the previous layerâ (the last hidden layer), right? But how we are denoting it in a code? Itâs not A_prev.
doneâŚThank you very much saif ji
Good to knowâŚ