Created
July 19, 2017 15:47
-
-
Save timehaven/ef82ef489987e66debead3e3c9013c95 to your computer and use it in GitHub Desktop.
Revisions
-
timehaven created this gist
Jul 19, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ ... i, j = 0, batch_size for _ in range(nbatches): sub = df.iloc[i:j] X2 = bc[i:j] ... # Calculate X and Y appropriately ... yield [X, X2], Y i = j j += batch_size ...