Hello. On exercise 5 I am getting the error “UnboundLocalError: local variable ‘linear_cache’ referenced before assignment”. I’m not sure what’s happening. I’m using the previous functions with variables passed in such as the parameters at the index of the string value using the letter W or b and the number l which is assigned by the for loop.
Resolved. had to pass the string name for relu
Thanks for your report.
UnboundLocalError: cannot access local variable ‘linear_cache’ where it is not associated with a value
I didnot understand the meaning of “pass the string name for relu”
“relu” should be a text string, not a variable name.
And for good form, add activation =
in front of it.
1 Like
resolved had to use “relu” and “sigmoid” instead of relu and sigmnoid
Thank you TMosh
1 Like