in this assignment in sample function I am getting “Wrong Values” error.
I think, the problem is in this line
# Step 3: Sample the index of a character within the vocabulary from the probability distribution y
# (see additional hints above)
idx = np.random.choice(vocab_size,1,list(np.ravel(y)))
idx = idx[0]
Can you tell me where is the problem?
[If it does not break the community guidelines, I can share the whole function code]