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 when running seq2seq_train.py #1

Open
djoker911 opened this issue Jul 31, 2017 · 6 comments
Open

ValueError when running seq2seq_train.py #1

djoker911 opened this issue Jul 31, 2017 · 6 comments

Comments

@djoker911
Copy link

Hi all,
I met ValueError: Sample larger than population when I ran seq2seq_train.py,
and I ran it on python3.5 virtualenv , tensorflow 1.0.0, numpy1.13.1

Is there any parameter or code should I adjust to run it correctly

btw, line 17 in data_util.py could be np.arange(...) not np.arrange(...)

Thanks for help!

@MayurNagar
Copy link

change config.batch_size less than 13. The code return is not proper. There are too many places where the code had to be corrected. for validation batch_size should be 1 else same error will pop up.

@nauman-akram
Copy link

@MayurNagar did you correct the code and generate some output? please help @anooshac I get this error even if I reduce the batch size or increase data set : IndexError: index 10 is out of bounds for axis 0 with size 1. could understand how to fix this.

@nauman-akram
Copy link

errrr

@AnjirHossain
Copy link

Could this be related to sampling without replacement? I've found link. I'm new to ml so I'm not entirely sure how to conduct generating batches.

@nauman-akram
Copy link

@MayurNagar do you have any idea how to test/predict this model?

@suryacaprice
Copy link

I have the same doubt , how to test / predict the model ?

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

5 participants