25 #ifndef _CRITERIA_THOMPSON_HPP_ 26 #define _CRITERIA_THOMPSON_HPP_ 42 void setParameters(
const vectord ¶ms) { };
43 size_t nParameters() {
return 0;};
44 double operator() (
const vectord &x)
49 std::string name() {
return "cThompsonSampling";};
62 void setParameters(
const vectord ¶ms) {};
63 size_t nParameters() {
return 0;};
64 double operator() (
const vectord &x)
68 const double yPred = d_->getMean();
69 return (std::min)(yPred,yStar);
71 std::string name() {
return "cOptimisticSampling";};
Namespace of the library interface.
virtual double sample_query()=0
Sample outcome acording to the marginal distribution at the query point.
Thompson sampling. Picks a random sample of the surrogate model.
virtual ProbabilityDistribution * prediction(const vectord &query)=0
Function that returns the prediction of the GP for a query point in the hypercube [0...
Abstract interface for criteria functors.
Abstract and factory modules for criteria.