Even though the Output of predict value is as expected (Function ‘predict’), I got this point incorrect. That causes me less earn points to pass. Would you mind helping me to figure this point out?
mlsc1w3-ex1
Code Cell UNQ_C4: Function ‘predict’ is incorrect. Check implementation.
Hi @rmwkwok,
I have the same problem as Carlos but I think that I implemented z_wb correctly.
I can’t find a solution that solves my problem on other posts.
Can I send you my notebook on Direct Message please ?
Dalila
I see. I suggest you to use 4 white spaces for one level of identation. For example:
def predict(X, w, b): is in the zero-th level of indentation, so you don’t need any white spaces before it.
Anything inside the predict will be at least in the first indentation level which will all be indented by at least 4 white spaces.
You have two for-loops.
Anything inside the outer for-loop will be in the second indentation level which takes 8 white spaces.
Anything inside the inner for-loop will be in the third indentation level which takes 12 white spaces.
To set all lines to zero-level, select those lines, press “Shift + Tab” once and it will go 4 white-space backward, you can keep pressing it until all go back to the zero-th level, then select the lines you want to move one indentation level up, and press “Tab”, and repeat this step until all indentations are alright.