Kindly help i am getting the following wrong values;
Sampling:
list of sampled indices:
[23, 16, 15, 26, 26, 23, 14, 2, 13, 2, 3, 22, 23, 21, 16, 22, 2, 9, 19, 12, 2, 14, 2, 23, 16, 3, 7, 2, 15, 26, 22, 24, 16, 16, 8, 12, 2, 18, 1, 24, 1, 2, 1, 15, 23, 7, 24, 3, 3, 23, 0]
list of sampled characters:
[‘w’, ‘p’, ‘o’, ‘z’, ‘z’, ‘w’, ‘n’, ‘b’, ‘m’, ‘b’, ‘c’, ‘v’, ‘w’, ‘u’, ‘p’, ‘v’, ‘b’, ‘i’, ‘s’, ‘l’, ‘b’, ‘n’, ‘b’, ‘w’, ‘p’, ‘c’, ‘g’, ‘b’, ‘o’, ‘z’, ‘v’, ‘x’, ‘p’, ‘p’, ‘h’, ‘l’, ‘b’, ‘r’, ‘a’, ‘x’, ‘a’, ‘b’, ‘a’, ‘o’, ‘w’, ‘g’, ‘x’, ‘c’, ‘c’, ‘w’, ‘\n’]
AssertionError Traceback (most recent call last)
in
19 print("\033[92mAll tests passed!")
20
—> 21 sample_test(sample)
in sample_test(target)
15 assert indices[-1] == char_to_ix[’\n’], “All samples must end with \n”
16 assert min(indices) >= 0 and max(indices) < len(char_to_ix), f"Sampled indexes must be between 0 and len(char_to_ix)={len(char_to_ix)}"
—> 17 assert np.allclose(indices[0:6], [23, 16, 26, 26, 24, 3]), “Wrong values”
18
19 print("\033[92mAll tests passed!")
AssertionError: Wrong values