Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Matthias Mayr
limbo
Commits
91216609
Commit
91216609
authored
Sep 20, 2016
by
Konstantinos Chatzilygeroudis
Browse files
fix for acqui opt w grads
parent
7b8a57a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/limbo/stat/gp.hpp
View file @
91216609
...
...
@@ -80,7 +80,7 @@ namespace limbo {
point
[
dim_in
]
=
x
;
if
(
dim_in
==
current
.
size
()
-
1
)
{
auto
q
=
bo
.
model
().
query
(
point
);
double
acqui
=
std
::
get
<
0
>
(
typename
BO
::
acquisition_function_t
(
bo
.
model
(),
bo
.
current_iteration
())(
point
,
afun
,
false
));
double
acqui
=
opt
::
fun
(
typename
BO
::
acquisition_function_t
(
bo
.
model
(),
bo
.
current_iteration
())(
point
,
afun
,
false
));
ofs
<<
point
.
transpose
()
<<
" "
<<
std
::
get
<
0
>
(
q
).
transpose
()
<<
" "
<<
std
::
get
<
1
>
(
q
)
<<
" "
...
...
src/limbo/stat/gp_acquisitions.hpp
View file @
91216609
...
...
@@ -71,11 +71,11 @@ namespace limbo {
if
(
!
blacklisted
&&
!
bo
.
samples
().
empty
())
{
std
::
tie
(
mu
,
sigma
)
=
bo
.
model
().
query
(
bo
.
samples
().
back
());
acqui
=
std
::
get
<
0
>
(
typename
BO
::
acquisition_function_t
(
bo
.
model
(),
bo
.
current_iteration
())(
bo
.
samples
().
back
(),
afun
,
false
));
acqui
=
opt
::
fun
(
typename
BO
::
acquisition_function_t
(
bo
.
model
(),
bo
.
current_iteration
())(
bo
.
samples
().
back
(),
afun
,
false
));
}
else
if
(
!
bo
.
bl_samples
().
empty
())
{
std
::
tie
(
mu
,
sigma
)
=
bo
.
model
().
query
(
bo
.
bl_samples
().
back
());
acqui
=
std
::
get
<
0
>
(
typename
BO
::
acquisition_function_t
(
bo
.
model
(),
bo
.
current_iteration
())(
bo
.
bl_samples
().
back
(),
afun
,
false
));
acqui
=
opt
::
fun
(
typename
BO
::
acquisition_function_t
(
bo
.
model
(),
bo
.
current_iteration
())(
bo
.
bl_samples
().
back
(),
afun
,
false
));
}
else
return
;
...
...
Write
Preview
Supports
Markdown
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