def test_checkpointing(nprocs, proposal_name): """Performs the same checkpointing test as for the PTSampler. """ model = Model() proposal = _setup_proposal(model, proposal_name) _test_checkpointing(Model, nprocs, proposals=[proposal], init_iters=STABILITY_DURATION-2)
def test_checkpointing(nprocs, proposal_name): """Performs the same checkpointing test as for the PTSampler, but using the adaptive normal proposal. """ model = Model() proposal = _setup_proposal(model, proposal_name) _test_checkpointing(Model, nprocs, proposals=[proposal])
def test_checkpointing(proposal_name, nprocs): """Performs the same checkpointing test as for the PTSampler, but using the angular proposal. """ model = AngularModel() proposal = _setup_proposal(proposal_name, model.params) _test_checkpointing(AngularModel, nprocs, proposals=[proposal])
def test_checkpointing(proposal_name, nprocs): """Performs the same checkpointing test as for the PTSampler, but using the adaptive normal proposal. """ model = Model() proposal = _setup_proposal(proposal_name, model.params, model.prior_bounds) _test_checkpointing(Model, nprocs, proposals=[proposal])
def test_checkpointing(td_proposal, birth_dist, nprocs): """Performs the same checkpointing test as for the PTSampler, but using the adaptive normal proposal. """ model = PolynomialRegressionModel() proposal = _setup_proposal(model, td_proposal, birth_dist) _test_checkpointing(PolynomialRegressionModel, nprocs, proposals=[proposal])
def test_checkpointing(proposal_name, nprocs): """Performs the same checkpointing test as for the PTSampler, but using the adaptive normal proposal. """ model = Model() proposal = _setup_proposal(model, proposal_name, model.prior_bounds) _test_checkpointing(Model, nprocs, proposals=[proposal], init_iters=STABILITY_DURATION)
def test_checkpointing(nprocs, proposal_name): """Performs the same checkpointing test as for the PTSampler. """ model = SolidAngleModel() proposal = _setup_proposal(model, proposal_name) _test_checkpointing(SolidAngleModel, nprocs, proposals=[proposal])