W4_A1_Ex5_local variable referenced before assignment

Why it keep telling me about the unbound local error?

Hello @rdf5skbz8x,

Please check this post out for the analysis of the error in that particular scenario. After reading it, be noted that the program was checking if the activation input is among one of ['relu', 'sigmoid'] only.

Cheers,
Raymond

1 Like