the lab says the below model predicts the probability that the input is a one is nearly one, could anyone please explain why the below input is a one?? it was X[500] i thought… many thanks!

“prediction = model.predict(X[500].reshape(1,400)) # a one ”

Hi @Louise7,

You can make a copy of and modify the following code (which is also available in your notebook) to visualize what `X[500]`

looks like as an image. Instead of generating a `random_index`

, set it to 500. You will see that it’s an image of a one.

Make a copy so you won’t lose the original version of the code.

Cheers,

Raymond

got it, thank you very much, Raymond!!

1 Like