Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error after training + index out of range #8

Open
cgayner opened this issue Mar 23, 2017 · 0 comments
Open

Error after training + index out of range #8

cgayner opened this issue Mar 23, 2017 · 0 comments

Comments

@cgayner
Copy link

cgayner commented Mar 23, 2017

Hi,
I receive two issues when I ran the main file - whilst I was able to get some txt files in the new folder (result_word_256_128_units), I received the following error under the last piece of training code:

Traceback (most recent call last):
File "main_lstM_etallica.py", line 210, in
run(is_character=False, maxlen=maxlen, num_units=num_units)
File "main_lstM_etallica.py", line 175, in run
next_index = sample(preds, diversity)
File "main_lstM_etallica.py", line 37, in sample
return np.argmax(np.random.multinomial(1, a, 1))
File "mtrand.pyx", line 4593, in mtrand.RandomState.multinomial (numpy/random/mtrand/mtrand.c:37541)
ValueError: sum(pvals[:-1]) > 1.0

THEN
When I ran '$ python main_post_process.py', I received thie following error:

Traceback (most recent call last):
File "main_post_process.py", line 116, in
result_dir = sys.argv[1]
IndexError: list index out of range

Any suggestions on what is going wrong?

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant