C3_W2_Collaborative_RecSys_Assignment- wrong value for regularized implementation

Hi,
I’m stuck here for a long time. Could someone help me to understand the problem? the output is right for ‘without regularization’. but the output is not correct for ‘with reglarization’.

This is the code i have given:

{mentor edit: code removed}

But i get the following error.

I wonder if someone could tell me where I could be wrong?

Check that you implemented the math correctly.

1 Like

Also, please don’t post your code on the forum. That’s not allowed by the Code of Conduct.

1 Like

Thank you so much! i didnt really think about it!