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
efd94561
Commit
efd94561
authored
Dec 18, 2017
by
Davis King
Browse files
Minor update
parent
087c1f2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
examples/model_selection_ex.cpp
examples/model_selection_ex.cpp
+2
-2
No files found.
examples/model_selection_ex.cpp
View file @
efd94561
...
...
@@ -122,7 +122,7 @@ int main() try
// And finally, we call this global optimizer that will search for the best parameters.
// It will call cross_validation_score()
3
0 times with different settings and return
// It will call cross_validation_score()
5
0 times with different settings and return
// the best parameter setting it finds. find_max_global() uses a global optimization
// method based on a combination of non-parametric global function modeling and
// quadratic trust region modeling to efficiently find a global maximizer. It usually
...
...
@@ -132,7 +132,7 @@ int main() try
auto
result
=
find_max_global
(
cross_validation_score
,
{
1e-5
,
1e-5
,
1e-5
},
// lower bound constraints on gamma, c1, and c2, respectively
{
100
,
1e6
,
1e6
},
// upper bound constraints on gamma, c1, and c2, respectively
max_function_calls
(
3
0
));
max_function_calls
(
5
0
));
double
best_gamma
=
result
.
x
(
0
);
double
best_c1
=
result
.
x
(
1
);
...
...
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