I keep having assertion error (week 3 assignment)


I had an output of 0.219. I thought it was the issue. After fixing it by trimming the string number and converting it back again. I keep having assertion error. Any idea?

1 Like

Hi!

Can you send me your code in a direct message so I can help?

the code is supposed to not implement lambda. you are using lambda and trying to create a regularized equation. i had the same error earlier!

1 Like

Hello Sam,

Thanks for your fast reply. I found out that I took into consideration the regularization effect, which I shouldn’t have done in this step.

Yes, I found out that I’ve done that. Now it works fine. Thanks :slight_smile:

I’m getting the expected value of 0.693 for the Compute_Cost but getting in error in the non-zero test as per below. Please help!

Hi Lino!

Can you send me your code in a direct message so I can help?

Hi

@Lino

I started a direct message with you.

I got the same assertion error. After I delete the for loop of implementing lambda. I passed all test of this exercise.

Thanks PHX. My error was different and due to incorrect calculation for f_wb_ij