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
8a6ffa32
Commit
8a6ffa32
authored
Jul 04, 2016
by
Vaios Papaspyros
Browse files
Fixed assertion fails (use with sferes in now good to go)
parent
dba2b4ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/limbo/experimental/bayes_opt/bo_multi.hpp
View file @
8a6ffa32
...
...
@@ -152,7 +152,6 @@ namespace limbo {
this
->
_update_models
();
std
::
cout
<<
"ok"
<<
std
::
endl
;
#ifdef USE_SFERES
typedef
sferes
::
gen
::
EvoFloat
<
D
,
multi
::
SferesParams
>
gen_t
;
typedef
sferes
::
phen
::
Parameters
<
gen_t
,
multi
::
SferesFit
<
model_t
>
,
multi
::
SferesParams
>
phen_t
;
typedef
sferes
::
eval
::
Parallel
<
multi
::
SferesParams
>
eval_t
;
...
...
src/limbo/model/gp.hpp
View file @
8a6ffa32
...
...
@@ -206,13 +206,15 @@ namespace limbo {
std
::
cout
<<
"WARNING max_observation with multi dimensional "
"observations doesn't make sense"
<<
std
::
endl
;
return
Eigen
::
VectorXd
(
_observations
.
maxCoeff
());
Eigen
::
VectorXd
_max_observation
(
1
);
_max_observation
<<
_observations
.
maxCoeff
();
return
_max_observation
;
}
/// return the mean observation (only call this if the output of the GP is of dimension 1)
Eigen
::
VectorXd
mean_observation
()
const
{
// TO
-
DO: Check if _dim_out is correct?!
// TODO: Check if _dim_out is correct?!
return
_samples
.
size
()
>
0
?
_mean_observation
:
Eigen
::
VectorXd
::
Zero
(
_dim_out
);
}
...
...
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