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
c7227d8f
Commit
c7227d8f
authored
Feb 22, 2014
by
Davis King
Browse files
Added more comments
parent
b0cdcd82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
examples/fhog_object_detector_ex.cpp
examples/fhog_object_detector_ex.cpp
+4
-3
No files found.
examples/fhog_object_detector_ex.cpp
View file @
c7227d8f
...
@@ -128,9 +128,10 @@ int main(int argc, char** argv)
...
@@ -128,9 +128,10 @@ int main(int argc, char** argv)
trainer
.
set_num_threads
(
4
);
trainer
.
set_num_threads
(
4
);
// The trainer is a kind of support vector machine and therefore has the usual SVM
// The trainer is a kind of support vector machine and therefore has the usual SVM
// C parameter. In general, a bigger C encourages it to fit the training data
// C parameter. In general, a bigger C encourages it to fit the training data
// better but might lead to overfitting. You find the best C value empirically by
// better but might lead to overfitting. You must find the best C value
// checking how well the trained detector works on a test set of images you haven't
// empirically by checking how well the trained detector works on a test set of
// trained on.
// images you haven't trained on. Don't just leave the value set at 1. Try a few
// different C values and see what works best for your data.
trainer
.
set_c
(
1
);
trainer
.
set_c
(
1
);
// We can tell the trainer to print it's progress to the console if we want.
// We can tell the trainer to print it's progress to the console if we want.
trainer
.
be_verbose
();
trainer
.
be_verbose
();
...
...
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