C2_W1_A2_Ex3, Fwd DROP-OUT: keep_prop "not defined"

Hi,

I’ve found this error when running the exercise:

Then, I tried to fix keep_prop = 0.5, and the function ran but of course gave an error when the test tried a different value.

How can feed_prop be “not defined” being, as it is, a default_fixed variable of the function?

Many thanks for your help

You can see from the function definition that the variable name of the relevant parameter is keep_prob, not keep_prop. Python can’t read your mind: you have to make the names match, right?

Hi @paulinpaloalto,

Hmm!, I see; “better to read carefully before writing”… It was late at night…

Many thanks. I won’t do it anymore!.

Joan Parés