Random_mini_batches DLS W2

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[:, k
inc : (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

Maybe, It’s not important now.
The correct version is mini_batch_X = shuffled_X[:, important_point:] and
important_point is an obvious point)))

I send you an email with print screen. Was it useful?

yes . I checked it carefully and found my error . thank you.