Course 3 Week 2 : Practice Lab Assertion Error

I am getting an assertion error in the collaborative filter lab even after getting the expected outputs with and without regularization.

Please help me clear this assigment

Thank you

Regards
Bhagya

Hi @bhagyashree_kulkarni ,

Please check the code block is constructed correctly with the appropriate indentation and J = cost/2 is not inside the ‘for’ statement block. If in doubt, please check the Hints for a step-by-step guide on implementation of the code.

Thanks Kic.

Got it worked :+1: