Beispiel #1
0
def test_seed(nprocs, proposal_name):
    """Runs the PTSampler ``test_seed`` using the adaptive normal proposal.
    """
    model = Model()
    proposal = _setup_proposal(model, proposal_name)
    _test_seed(Model, nprocs, proposals=[proposal],
               init_iters=STABILITY_DURATION-2)
Beispiel #2
0
def test_seed(nprocs, proposal_name):
    """Runs the PTSampler ``test_seed`` using the adaptive normal proposal.
    """
    model = Model()
    proposal = _setup_proposal(model, proposal_name)
    _test_seed(Model, nprocs, proposals=[proposal])
Beispiel #3
0
def test_seed(proposal_name, nprocs):
    """Runs the PTSampler ``test_seed`` using the angular proposal.
    """
    model = AngularModel()
    proposal = _setup_proposal(proposal_name, model.params)
    _test_seed(AngularModel, nprocs, proposals=[proposal])
Beispiel #4
0
def test_seed(name, nprocs, componentwise):
    """Runs the PTSampler ``test_seed`` using the adaptive proposal.
    """
    model = Model()
    proposal = _setup_proposal(model, name, componentwise=componentwise)
    _test_seed(Model, nprocs, proposals=[proposal])
Beispiel #5
0
def test_seed(proposal_name, nprocs):
    """Runs the PTSampler ``test_seed`` using the adaptive normal proposal.
    """
    model = Model()
    proposal = _setup_proposal(proposal_name, model.params, model.prior_bounds)
    _test_seed(Model, nprocs, proposals=[proposal])
Beispiel #6
0
def test_seed(td_proposal, birth_dist, nprocs):
    """Runs the PTSampler ``test_seed`` using the adaptive normal proposal.
    """
    model = PolynomialRegressionModel()
    proposal = _setup_proposal(model, td_proposal, birth_dist)
    _test_seed(PolynomialRegressionModel, nprocs, proposals=[proposal])