I am getting error in the exercise 8
Y_prediction_test = predict(w,b,X_test)
Y_prediction_train = predict(w,b,X_train)
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<ipython-input-77-9408a3dffbf6> in <module>
1 from public_tests import *
2
----> 3 model_test(model)
~/work/release/W2A2/public_tests.py in model_test(target)
117 assert type(d['costs']) == list, f"Wrong type for d['costs']. {type(d['costs'])} != list"
118 assert len(d['costs']) == 1, f"Wrong length for d['costs']. {len(d['costs'])} != 1"
--> 119 assert np.allclose(d['costs'], expected_output['costs']), f"Wrong values for d['costs']. {d['costs']} != {expected_output['costs']}"
120
121 assert type(d['w']) == np.ndarray, f"Wrong type for d['w']. {type(d['w'])} != np.ndarray"
AssertionError: Wrong values for d['costs']. [array(4.85203026)] != [array(0.69314718)]