20 template<
typename HYP>
26 using output_t = decltype(std::declval<HYP>().shibboleth_call( std::declval<input_t>()));
40 sh_out = h0.shibboleth_call(sh_in);
49 auto o = h.shibboleth_call(sh_in);
51 if(steps % 1000 == 0) {
106 template<
typename HYP>
114 this->add_chain(h0, in, d);
unsigned long samples
Definition: MCMCChain.h:41
size_t steps
Definition: ShibbolethSampler.h:31
A ChainPool stores a bunch of MCMCChains and allows you to run them serially or in parallel...
std::atomic< uintmax_t > global_sample_count(0)
input_t sh_in
Definition: ShibbolethSampler.h:33
Definition: ShibbolethSampler.h:107
HYP HYP
Definition: MCMCChain.h:26
bool store
Definition: ShibbolethSampler.h:29
ShibbolethSampler(HYP &h0, typename HYP::input_t &in, typename HYP::data_t *d)
Definition: ShibbolethSampler.h:113
decltype(std::declval< HYP >().shibboleth_call(std::declval< input_t >())) output_t
Definition: ShibbolethSampler.h:26
Definition: MCMCChain.h:23
std::string str(BindingTree *t)
Definition: BindingTree.h:195
Definition: ChainPool.h:25
size_t FLIP_EVERY
Definition: ShibbolethSampler.h:28
void print(FIRST f, ARGS... args)
Lock output_lock and print to std:cout.
Definition: IO.h:53
A FiniteHistory stores the previous N examples of something of type T. This is used e...
A FIFO mutex (from stackoverflow) https://stackoverflow.com/questions/14792016/creating-a-lock-that-p...
output_t sh_out
Definition: ShibbolethSampler.h:34
ConstrainedMCMC(HYP &h0, input_t &in, typename HYP::data_t *d)
Definition: ShibbolethSampler.h:36
virtual bool check(HYP &h) override
This allows us to overwrite/enforce stuff about proposals in subclasses of MCMCChain.
Definition: ShibbolethSampler.h:44
HYP::input_t input_t
Definition: ShibbolethSampler.h:23
This is a thread_local rng whose first object is used to see others (in other threads). This way, we can have thread_local rngs that all are seeded deterministcally in Fleet via –seed=X.
This represents an MCMC hain on a hypothesis of type HYP. It uses HYP::propose and HYP::compute_poste...
This class has all the information for running MCMC or MCTS in a little package. It defaultly constru...
Definition: ShibbolethSampler.h:21