Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/clementfarabet/lua---nnx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Scoffier <github@metm.org>2011-09-01 22:05:38 +0400
committerMarco Scoffier <github@metm.org>2011-09-01 22:05:38 +0400
commit376a0e86f0ac963707291a05a148fc079a4cc28e (patch)
tree92da731cdd726f0f05925d8050db951034071f1c
parent0704307f7e2b4e2bc0720dc7d7c28f4e887dfac6 (diff)
bug in batch creation
-rw-r--r--BatchTrainer.lua2
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]