Beispiel #1
0
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)
Beispiel #2
0
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])
Beispiel #3
0
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])
Beispiel #4
0
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])
Beispiel #5
0
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])
Beispiel #6
0
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)
Beispiel #7
0
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])