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
6f8a475e
Commit
6f8a475e
authored
Sep 20, 2016
by
Konstantinos Chatzilygeroudis
Browse files
First try for enabling acquisition optimization with gradients [fix]
parent
ef3411f5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tests/test_gp.cpp
View file @
6f8a475e
...
...
@@ -252,7 +252,7 @@ BOOST_AUTO_TEST_CASE(test_gp_no_samples_acqui_opt)
// we do not have gradient in our current acquisition function
auto
acqui_optimization
=
[
&
](
const
Eigen
::
VectorXd
&
x
,
bool
g
)
{
return
opt
::
no_grad
(
acqui
(
x
,
FirstElem
())
)
;
};
[
&
](
const
Eigen
::
VectorXd
&
x
,
bool
g
)
{
return
acqui
(
x
,
FirstElem
());
};
Eigen
::
VectorXd
starting_point
=
tools
::
random_vector
(
2
);
Eigen
::
VectorXd
test
=
acqui_optimizer
(
acqui_optimization
,
starting_point
,
true
);
BOOST_CHECK
(
test
(
0
)
<
1e-5
);
...
...
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