![]() |
Fleet
0.0.9
Inference in the LOT
|
#include <ShibbolethSampler.h>
Public Types | |
using | input_t = HYP::input_t |
using | output_t = decltype(std::declval< HYP >().shibboleth_call(std::declval< input_t >())) |
![]() | |
using | HYP = HYP |
Public Member Functions | |
ConstrainedMCMC (HYP &h0, input_t &in, typename HYP::data_t *d) | |
virtual bool | check (HYP &h) override |
This allows us to overwrite/enforce stuff about proposals in subclasses of MCMCChain. More... | |
![]() | |
MCMCChain (HYP &h0, typename HYP::data_t *d) | |
MCMCChain (HYP &&h0, typename HYP::data_t *d) | |
MCMCChain (const MCMCChain &m) | |
MCMCChain (MCMCChain &&m) | |
virtual | ~MCMCChain () |
void | set_data (typename HYP::data_t *d, bool recompute_posterior=true) |
Set this data. More... | |
HYP & | getCurrent () |
const HYP & | getCurrent () const |
void | runOnCurrent () |
const HYP & | getMax () |
void | restart () |
generator< HYP &> | run (Control ctl) |
Run MCMC according to the control parameters passed in. NOTE: ctl cannot be passed by reference. More... | |
void | run () |
double | acceptance_ratio () |
double | at_temperature (double t) |
Public Attributes | |
size_t | FLIP_EVERY = 10 |
bool | store = false |
size_t | steps = 0 |
input_t | sh_in |
output_t | sh_out |
![]() | |
HYP | current |
OrderedLock | current_mutex |
HYP::data_t * | data |
double | maxval |
unsigned long | samples |
unsigned long | proposals |
unsigned long | acceptances |
unsigned long | steps_since_improvement |
std::atomic< double > | temperature |
FiniteHistory< bool > | history |
using ConstrainedMCMC< HYP >::input_t = HYP::input_t |
using ConstrainedMCMC< HYP >::output_t = decltype(std::declval<HYP>().shibboleth_call( std::declval<input_t>())) |
|
inline |
|
inlineoverridevirtual |
This allows us to overwrite/enforce stuff about proposals in subclasses of MCMCChain.
p |
Reimplemented from MCMCChain< HYP >.
size_t ConstrainedMCMC< HYP >::FLIP_EVERY = 10 |
input_t ConstrainedMCMC< HYP >::sh_in |
output_t ConstrainedMCMC< HYP >::sh_out |
size_t ConstrainedMCMC< HYP >::steps = 0 |
bool ConstrainedMCMC< HYP >::store = false |