AssertionError Traceback (most recent call last)
in
18
19 assert np.allclose(mini_batches[0][0][0][0:3], [294912, 86016, 454656]), “Wrong values. Check the indexes used to form the mini batches”
—> 20 assert np.allclose(mini_batches[-1][0][-1][0:3], [1425407, 1769471, 897023]), “Wrong values. Check the indexes used to form the mini batches”
21
22 print("\033[92mAll test passed!")
AssertionError: Wrong values. Check the indexes used to form the mini batches
Code:
mini_batch_X = shuffled_X[:, k*inc : (k+1) inc]
mini_batch_Y = shuffled_Y[:, kinc : (k+1)*inc]
mini_batch_X = shuffled_X[:, 0 : (m-mini_batch_size num_complete_minibatches)]
mini_batch_Y = shuffled_Y[:, 0 : (m-mini_batch_size num_complete_minibatches)]
Didn’t get the solution . Please Help