You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in pick_word(probabilities, int_to_vocab)
6 :return: String of the predicted word
7 """
----> 8 return np.random.choice(list(int_to_vocab.values()), 1, p=probabilities)[0]
mtrand.pyx in mtrand.RandomState.choice (numpy/random/mtrand/mtrand.c:17602)()
ValueError: object too deep for desired array
The text was updated successfully, but these errors were encountered:
Hi Buddy,
There is an error when I run your program via 'ipython notebook' with following tips
NFO:tensorflow:Restoring parameters from ./save
ValueError Traceback (most recent call last)
in ()
30
31 #pred_word = pick_word(probabilities[dyn_seq_length-1], int_to_vocab)
---> 32 pred_word = pick_word(probabilities[0], int_to_vocab)
33
34 gen_sentences.append(pred_word)
in pick_word(probabilities, int_to_vocab)
6 :return: String of the predicted word
7 """
----> 8 return np.random.choice(list(int_to_vocab.values()), 1, p=probabilities)[0]
mtrand.pyx in mtrand.RandomState.choice (numpy/random/mtrand/mtrand.c:17602)()
ValueError: object too deep for desired array
The text was updated successfully, but these errors were encountered: