Week 3 Predict Threshold error

Hello @kirankr24

Please DM your notebook to me and I will take a look

Removing the file . .

Hello @kirankr24,

your predict function has gone wrong because of an unnnecessary FOR loop. You have done the For loop over the examples, m twice!!

It should ideally look like this:

For loop over the m examples
    initialize z_wb
    For Loop over the n features

From here on, if you indent the rest of the lines correctly, your ouput will be correct. While indenting, give it a second thought if that line should come under the ā€œiā€ loop or the ā€œjā€ loop.

1 Like

Thank you very it get sorted.

You are welcome @kirankr24