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
a88a00d1
Commit
a88a00d1
authored
Dec 16, 2017
by
Davis King
Browse files
Merged
parents
233a2393
ba83f524
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
dlib/global_optimization/upper_bound_function.h
dlib/global_optimization/upper_bound_function.h
+0
-2
dlib/global_optimization/upper_bound_function_abstract.h
dlib/global_optimization/upper_bound_function_abstract.h
+1
-0
No files found.
dlib/global_optimization/upper_bound_function.h
View file @
a88a00d1
...
@@ -140,8 +140,6 @@ namespace dlib
...
@@ -140,8 +140,6 @@ namespace dlib
{
{
const
long
dims
=
points
[
0
].
x
.
size
();
const
long
dims
=
points
[
0
].
x
.
size
();
using
sample_type
=
std
::
vector
<
std
::
pair
<
size_t
,
double
>>
;
using
sample_type
=
std
::
vector
<
std
::
pair
<
size_t
,
double
>>
;
using
sample_type
=
std
::
vector
<
std
::
pair
<
size_t
,
double
>>
;
using
kernel_type
=
sparse_linear_kernel
<
sample_type
>
;
using
kernel_type
=
sparse_linear_kernel
<
sample_type
>
;
std
::
vector
<
sample_type
>
x
;
std
::
vector
<
sample_type
>
x
;
...
...
dlib/global_optimization/upper_bound_function_abstract.h
View file @
a88a00d1
...
@@ -54,6 +54,7 @@ namespace dlib
...
@@ -54,6 +54,7 @@ namespace dlib
double local_bound = p.y + sqrt(noise_terms[i] + trans(p.x-x)*M*(p.x-x))
double local_bound = p.y + sqrt(noise_terms[i] + trans(p.x-x)*M*(p.x-x))
min_ub = min(min_ub, local_bound)
min_ub = min(min_ub, local_bound)
}
}
return min_ub;
}
}
Where POINTS is an array of function_evaluation instances drawn from F(x),
Where POINTS is an array of function_evaluation instances drawn from F(x),
M is a diagonal matrix, and noise_terms is an array of scalars.
M is a diagonal matrix, and noise_terms is an array of scalars.
...
...
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