I’m getting this error:
AssertionError Traceback (most recent call last)
<ipython-input-133-7f17a31b22cb> in <module>
----> 1 model_test(model)
~/work/release/W2A2/public_tests.py in model_test(target)
112
113 assert type(d['costs']) == list, f"Wrong type for d['costs']. {type(d['costs'])} != list"
--> 114 assert len(d['costs']) == 1, f"Wrong length for d['costs']. {len(d['costs'])} != 1"
115 assert np.allclose(d['costs'], expected_output['costs']), f"Wrong values for pred. {d['costs']} != {expected_output['costs']}"
116
AssertionError: Wrong length for d['costs']. 20 != 1
Please let me know how I can resolve this error.