Commit 8a6ffa32 authored by Vaios Papaspyros's avatar Vaios Papaspyros
Browse files

Fixed assertion fails (use with sferes in now good to go)

parent dba2b4ee
......@@ -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;
......
......@@ -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);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment