C3_W2_Collaborative_RecSys_Assignment- error message

{moderator edit: code removed}

whenever am running this piece of code, I always get the error message … however … I am summing the cost function with the regularisation term not multiplying as it is written in the error message

{moderator edit: code removed}

thats the error message with wrong expected output

The indentation of your code in cofi_cost_func() is incorrect.

All of the code within a function must be indented. This is how Python defines blocks of executable code.

Please do not post your code on the forum. That’s not allowed by the Code of Conduct.

If a mentor needs to see your code, we’ll contact you with instructions.

1 Like

all right … thanks