C2_W2_Lab assignment

Hello,
In Exercise 2, the output is fine, yet the test fails (1 out of 4).
How can I connect with a tutor to share code and get insight on what is going on?
Thanks.

Hi @IP2023,

Could you provide a bit more information about where it fails? It should show the desired output and the actual output. With this, we can try to debug it together.

Thanks,
Lucas

Hello,

I don’t wnt to post code here (should nto), so I’m posting only the message I got.
This is exercise 2, from assigment at the end of week 2.

Test case “extra_check”. Wrong output of pred_numpy for X = [-5 0 1 5].
Expected:
[ 0 10 12 20]
Got:
[6.79491035 7.03259355 7.08013019 7.27027675]
3 Tests passed
1 Tests failed

I already submitted my assginment and got graded; I just want to understand what I did wrong.
Thanks.

Hi IP2023,

Did you get any answer? I’m having the same situation - 1 test of 4 is failing.

Ivan

there’s an error in the unittest expected output there’s no way the expected output is [0, 10, 12, 20]