From 4cab0b04a02e270f4e6bce11a763ddfe0a2ad2ae Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Wed, 19 Oct 2016 17:59:59 +0200 Subject: [PATCH] The validation error was computed on the training data. That's embarassing. --- dyncnn.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dyncnn.lua b/dyncnn.lua index 7cc5318..839431a 100755 --- a/dyncnn.lua +++ b/dyncnn.lua @@ -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 -- 2.39.5