Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

ValueError #35

Open
ozunaltun opened this issue Oct 3, 2018 · 3 comments
Open

ValueError #35

ozunaltun opened this issue Oct 3, 2018 · 3 comments

Comments

@ozunaltun
Copy link

Hi all,
when i try to run seq2seq.py;

Finished loading training matrices
Traceback (most recent call last):
File "seq.py", line 223, in
encoderTrain, decoderTargetTrain, decoderInputTrain = getTrainingBatch(xTrain, yTrain, batchSize, maxEncoderLength)
File "seq.py", line 53, in getTrainingBatch
num = randint(0,numTrainingExamples - localBatchSize - 1)
File "C:\Users\ozun\Anaconda3\envs\tf-gpu\lib\random.py", line 221, in randint
return self.randrange(a, b+1)
File "C:\Users\ozun\Anaconda3\envs\tf-gpu\lib\random.py", line 199, in randrange
raise ValueError("empty range for randrange() (%d,%d, %d)" % (istart, istop, width))
ValueError: empty range for randrange() (0,-12, -12)

@adeshpande3
Copy link
Owner

You should double check what your values are for numTrainingExamples and localBatchSize, and make sure they are positive and that the values make sense.

@ozunaltun
Copy link
Author

How do i check those values? im using stock settings. thanks

@adeshpande3
Copy link
Owner

Before the line where the error happens (line 53), you can place some print statements (print numTrainingExamples) to see what those values are.

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

2 participants