19 n.can_resample =
false;
25 std::function no_resamples = +[](
const Node& n) ->
bool {
return not n.can_resample;};
26 if(h0.count_constants() == 0 and h0.
get_value().all(no_resamples)) {
33 long steps_since_best = 0;
41 if(h.posterior > best_posterior) {
42 best_posterior = h.posterior;
50 if(steps_since_best > 100000)
break;
unsigned long burn
Definition: FleetArgs.h:14
virtual void complete() override
Fill in all the holes in this hypothesis, at random, modifying self. NOTE for LOTHypotheses this will...
Definition: Lexicon.h:246
unsigned long inner_thin
Definition: FleetArgs.h:28
Definition: MCMCChain.h:23
we don't need inputs/outputs for out MyHypothesis
Definition: MyHypothesis.h:6
virtual void process_evaluable(MyHypothesis ¤t)
If we can evaluate this current node (usually: compute a posterior and add_sample) ...
Definition: MCTSBase.h:193
constexpr double infinity
Definition: Numerics.h:20
Definition: generator.hpp:21
auto & get_value()
Definition: Lexicon.h:57
MyMCTS(MyMCTS &&)
Definition: MyMCTS.h:12
Definition: PartialMCTSNode.h:13
size_t BURN_N
Definition: Main.cpp:21
This is a chain pool that runs multiple chains on a ladder of different temperatures and adjusts temp...
Control InnerControl(unsigned long st=FleetArgs::inner_steps, unsigned long t=FleetArgs::inner_runtime, size_t thr=1, unsigned long re=FleetArgs::inner_restart)
Make a Control object (NOTE it's a Control object not an InnerControl one) that has default parameter...
Definition: Control.h:102
void add_sample(const float v)
Definition: MCTSBase.h:163
generator< HYP & > run(Control ctl)
Run MCMC according to the control parameters passed in. NOTE: ctl cannot be passed by reference...
Definition: MCMCChain.h:153
virtual generator< MyHypothesis & > playout(MyHypothesis ¤t) override
This gets called on a child that is unvisited. Typically it would consist of filling in h some number...
Definition: MyMCTS.h:14
This represents an MCMC hain on a hypothesis of type HYP. It uses HYP::propose and HYP::compute_poste...
static data_t * data
Definition: MCTSBase.h:57
unsigned long thin
Definition: FleetArgs.h:33