Commit 78df57d9 authored by Jean-Baptiste Mouret's avatar Jean-Baptiste Mouret
Browse files

fix a small issue in the formula of gp-ucb (D)

parent 5bbf6b33
......@@ -36,10 +36,10 @@ namespace limbo {
public:
GP_UCB(const Model& model, int iteration) : _model(model)
{
double t3 = std::pow(iteration, 3.0);
double nt = std::pow(iteration, dim_in() / 2.0 + 2.0);
static constexpr double delta3 = Params::acqui_gpucb::delta() * 3;
static constexpr double pi2 = M_PI * M_PI;
_beta = std::sqrt(2.0 * std::log(t3 * pi2 / delta3));
_beta = std::sqrt(2.0 * std::log(nt * pi2 / delta3));
}
size_t dim_in() const { return _model.dim_in(); }
......
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