The validation error was computed on the training data. That's embarassing.
authorFrancois Fleuret <fleuret@elk.fleuret.org>
Wed, 19 Oct 2016 15:59:59 +0000 (17:59 +0200)
committerFrancois Fleuret <fleuret@elk.fleuret.org>
Wed, 19 Oct 2016 15:59:59 +0000 (17:59 +0200)
dyncnn.lua

index 7cc5318..839431a 100755 (executable)
@@ -642,7 +642,7 @@ function trainModel(model,
          local startTime = sys.clock()
 
          for b = 1, validationData.nbSamples, batchSize do
-            fillBatch(trainData, b, batchSize, batch)
+            fillBatch(validationData, b, batchSize, batch)
             local output = model:forward(batch.input)
             accLoss = accLoss + l2criterion:forward(output, batch.target)
             nbBatches = nbBatches + 1