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
85d62337
Commit
85d62337
authored
Dec 10, 2017
by
Davis King
Browse files
Minor tweak
parent
f22d6736
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
dlib/global_optimization/find_max_global.h
dlib/global_optimization/find_max_global.h
+1
-1
dlib/global_optimization/find_max_global_abstract.h
dlib/global_optimization/find_max_global_abstract.h
+2
-2
No files found.
dlib/global_optimization/find_max_global.h
View file @
85d62337
...
@@ -138,7 +138,7 @@ template <typename T> static auto go(T&& f, const matrix<double, 0, 1>& a) -> de
...
@@ -138,7 +138,7 @@ template <typename T> static auto go(T&& f, const matrix<double, 0, 1>& a) -> de
{
{
for
(
long
j
=
0
;
j
<
specs
[
i
].
lower
.
size
();
++
j
)
for
(
long
j
=
0
;
j
<
specs
[
i
].
lower
.
size
();
++
j
)
{
{
if
(
!
specs
[
i
].
is_integer_variable
[
j
]
&&
specs
[
i
].
lower
(
j
)
>
0
&&
specs
[
i
].
upper
(
j
)
/
specs
[
i
].
lower
(
j
)
>
1000
)
if
(
!
specs
[
i
].
is_integer_variable
[
j
]
&&
specs
[
i
].
lower
(
j
)
>
0
&&
specs
[
i
].
upper
(
j
)
/
specs
[
i
].
lower
(
j
)
>
=
1000
)
{
{
log_scale
[
i
].
push_back
(
true
);
log_scale
[
i
].
push_back
(
true
);
specs
[
i
].
lower
(
j
)
=
std
::
log
(
specs
[
i
].
lower
(
j
));
specs
[
i
].
lower
(
j
)
=
std
::
log
(
specs
[
i
].
lower
(
j
));
...
...
dlib/global_optimization/find_max_global_abstract.h
View file @
85d62337
...
@@ -124,7 +124,7 @@ namespace dlib
...
@@ -124,7 +124,7 @@ namespace dlib
- More than max_runtime time has elapsed since the start of this function.
- More than max_runtime time has elapsed since the start of this function.
- Any variables that satisfy the following conditions are optimized on a log-scale:
- Any variables that satisfy the following conditions are optimized on a log-scale:
- The lower bound on the variable is > 0
- The lower bound on the variable is > 0
- The ratio of the upper bound to lower bound is > 1000
- The ratio of the upper bound to lower bound is >
=
1000
- The variable is not an integer variable
- The variable is not an integer variable
We do this because it's common to optimize machine learning models that have
We do this because it's common to optimize machine learning models that have
parameters with bounds in a range such as [1e-5 to 1e10] (e.g. the SVM C
parameters with bounds in a range such as [1e-5 to 1e10] (e.g. the SVM C
...
@@ -207,7 +207,7 @@ namespace dlib
...
@@ -207,7 +207,7 @@ namespace dlib
- More than max_runtime time has elapsed since the start of this function.
- More than max_runtime time has elapsed since the start of this function.
- Any variables that satisfy the following conditions are optimized on a log-scale:
- Any variables that satisfy the following conditions are optimized on a log-scale:
- The lower bound on the variable is > 0
- The lower bound on the variable is > 0
- The ratio of the upper bound to lower bound is > 1000
- The ratio of the upper bound to lower bound is >
=
1000
- The variable is not an integer variable
- The variable is not an integer variable
We do this because it's common to optimize machine learning models that have
We do this because it's common to optimize machine learning models that have
parameters with bounds in a range such as [1e-5 to 1e10] (e.g. the SVM C
parameters with bounds in a range such as [1e-5 to 1e10] (e.g. the SVM C
...
...
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