Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
3793e29e
Commit
3793e29e
authored
Jan 22, 2017
by
Davis King
Browse files
Added comments about test_one_step()
parent
c20c11af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
examples/dnn_introduction2_ex.cpp
examples/dnn_introduction2_ex.cpp
+9
-0
No files found.
examples/dnn_introduction2_ex.cpp
View file @
3793e29e
...
...
@@ -303,7 +303,16 @@ int main(int argc, char** argv) try
mini_batch_labels
.
push_back
(
training_labels
[
idx
]);
}
// Tell the trainer to update the network given this mini-batch
trainer
.
train_one_step
(
mini_batch_samples
,
mini_batch_labels
);
// You can also feed validation data into the trainer by periodically
// calling trainer.test_one_step(samples,labels). Unlike train_one_step(),
// test_one_step() doesn't modify the network, it only computes the testing
// error which it records internally. This testing error will then be print
// in the verbose logging and will also determine when the trainer's
// automatic learning rate shrinking happens. Therefore, test_one_step()
// can be used to perform automatic early stopping based on held out data.
}
// When you call train_one_step(), the trainer will do its processing in a
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment