Skip to content

Commit

Permalink
messed up the indexing, off by one :-( Fixed now.
Browse files Browse the repository at this point in the history
  • Loading branch information
hughperkins committed Jan 31, 2015
1 parent f38f930 commit 47cce98
Show file tree
Hide file tree
Showing 3 changed files with 12,214 additions and 102 deletions.
6 changes: 3 additions & 3 deletions dataset_partitioner.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def draw_samples( dataDirectory, numSamples ):
if year > 2014:
continue # ignore after 2014, to keep the set of games fixed
numgames = fileinfo['numGames']
for i in range( numgames + 1 ):
for i in range( numgames ):
availableGames.append( ( filename, i ) )
print( 'total num games: ' + str( len( availableGames ) ) )

Expand Down Expand Up @@ -76,7 +76,7 @@ def draw_training_games( dataDirectory ):
if year > 2014:
continue # ignore after 2014, to keep the set of games fixed
numgames = fileinfo['numGames']
for i in range( numgames + 1 ):
for i in range( numgames ):
sample = ( filename, i )
if sample not in testGames:
train_games.append( sample )
Expand Down Expand Up @@ -119,7 +119,7 @@ def draw_training_samples( dataDirectory, numSamples ):
if year > 2014:
continue # ignore after 2014, to keep the set of games fixed
numgames = fileinfo['numGames']
for i in range( numgames + 1 ):
for i in range( numgames ):
availableGames.append( ( filename, i ) )
print( 'total num games: ' + str( len( availableGames ) ) )

Expand Down
Loading

0 comments on commit 47cce98

Please sign in to comment.