ValueError: object too deep for desired array

I took a error about ValueError.

I gave a part of my code in the above picture. My error is below.

Traceback (most recent call last):
File "<ipython-input-12-d3c1d92d95ac>", line 1, in <module>

runfile('E:/Python Scripts/NeuralNetwork/rnn-tutorial-rnnlm-master/rnn_numpy.py', wdir='E:/Python Scripts/NeuralNetwork/rnn-tutorial-rnnlm-master')
File "C:\Users\Semiha\Anaconda2\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 699, in runfile

execfile(filename, namespace)
File "C:\Users\Semiha\Anaconda2\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 74, in execfile

exec(compile(scripttext, filename, 'exec'), glob, loc)
File "E:/Python Scripts/NeuralNetwork/rnn-tutorial-rnnlm-master/rnn_numpy.py", line 281, in <module>

sentence_end_token)
File "E:/Python Scripts/NeuralNetwork/rnn-tutorial-rnnlm-master/rnn_numpy.py", line 184, in generate_sentence

samples = np.random.multinomial(1, next_word_probs[-1])
File "mtrand.pyx", line 4467, in mtrand.RandomState.multinomial (numpy\random\mtrand\mtrand.c:29042)
ValueError: object too deep for desired array

Pelese, can you help me about this error?

Everybody, have a nice day.

Semiha Makinist Uzman on 26 Nisan 2016 yazdı
Yorum Ekle
  • 1 Yanıt(lar)

    please, Is there no one here to help me? Please !!!

    Semiha Makinist Uzman on 29 Nisan 2016 yanıtladı
    Yorum Ekle
  • Yanıtınız

    Cevabınızı göndererek Gizlilik Politikası ve Hizmet Şartlarını kabul ediyorsunuz.