projects
/
dyncnn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
566fc0b
)
The validation error was computed on the training data. That's embarassing.
author
Francois Fleuret
<fleuret@elk.fleuret.org>
Wed, 19 Oct 2016 15:59:59 +0000
(17:59 +0200)
committer
Francois Fleuret
<fleuret@elk.fleuret.org>
Wed, 19 Oct 2016 15:59:59 +0000
(17:59 +0200)
dyncnn.lua
patch
|
blob
|
history
diff --git
a/dyncnn.lua
b/dyncnn.lua
index
7cc5318
..
839431a
100755
(executable)
--- 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(
trai
nData, b, batchSize, batch)
+ fillBatch(
validatio
nData, b, batchSize, batch)
local output = model:forward(batch.input)
accLoss = accLoss + l2criterion:forward(output, batch.target)
nbBatches = nbBatches + 1