erikbern / deep-pink

Deep Pink is a chess AI that learns to play chess using deep learning.
http://erikbern.com/2014/11/29/deep-learning-for-chess/
811 stars 159 forks source link

float division by zero #21

Open peter91011 opened 5 years ago

peter91011 commented 5 years ago

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 commented 5 years ago

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

XOGautham commented 4 years ago

Did you find anything

erikbern commented 4 years ago

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