Test cofi_cost_fun in Lab 1 week2 of MLS course 3

Hello my Mentors, I thank you all for working on us to complete our assignment.
I was able to get the cost with and without regularization.
But my cofi_cost_fun test 1 failed. Below is the error massage.
Please assist.
AssertionError Traceback (most recent call last)
1 # Public tests
2 from public_tests import *
----> 3 test_cofi_cost_func(cofi_cost_func)

~/work/public_tests.py in test_cofi_cost_func(target)
14 J = target(X_r, W_r, b_r, Y_r, R_r, 2);
15 assert not np.isclose(J, 13.5), f"Wrong value. Got {J}. Did you multiply the regularization term by lambda_?"
—> 16 assert np.isclose(J, 27), f"Wrong value. Expected {27}, got {J}. Check the regularization term"

AssertionError: Wrong value. Expected 27, got 540.0. Check the regularization term

Vectorized Implementation

Hello @Onuorah_Martins_Onye

Check the indentation of regularization term and check the following post also…

Thanks Jenitta.

I will check all that you have mentioned