diff options
author | Marco Scoffier <github@metm.org> | 2011-09-01 22:05:38 +0400 |
---|---|---|
committer | Marco Scoffier <github@metm.org> | 2011-09-01 22:05:38 +0400 |
commit | 376a0e86f0ac963707291a05a148fc079a4cc28e (patch) | |
tree | 92da731cdd726f0f05925d8050db951034071f1c | |
parent | 0704307f7e2b4e2bc0720dc7d7c28f4e887dfac6 (diff) |
bug in batch creation
-rw-r--r-- | BatchTrainer.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BatchTrainer.lua b/BatchTrainer.lua index 338440d..bbc0e24 100644 --- a/BatchTrainer.lua +++ b/BatchTrainer.lua @@ -115,7 +115,7 @@ function BatchTrainer:nextBatch() for i = t,math.min(t+bs-1,ds) do -- load new sample - local sample = self.trainset[t] + local sample = self.trainset[i] local input = sample[1] local target = sample[2] |