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

float division by zero #21

Open
peter91011 opened this issue May 12, 2019 · 3 comments
Open

float division by zero #21

peter91011 opened this issue May 12, 2019 · 3 comments

Comments

@peter91011
Copy link

Hi, I got an error when running train.py
I have already download pgn files in the working directory.
When creating function get_data:

test_size = 10000.0 / len(data[0])
print('Splitting', len(data[0]), 'entries into train/test set')
data = train_test_split(*data, test_size=test_size)

len(data[0]) is 0. So comes to the error.
Do you know how to fix that?
I'm sure I have already downloaded pgn files and run parse_game.py at first

@erikbern
Copy link
Owner

no idea, haven't looked at this code for several years!

@XOGautham
Copy link

Did you find anything

@erikbern
Copy link
Owner

this code is extremely old, probably doesn't make sense to try to run it

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

3 participants