def test_fit_fn_text(method, kwargs, error, another_simple_model):
    with another_simple_model:
        if error is not None:
            with pytest.raises(error):
                fit(10, method=method, **kwargs)
        else:
            fit(10, method=method, **kwargs)
def test_fit_fn_text(method, kwargs, error, another_simple_model):
    with another_simple_model:
        if error is not None:
            with pytest.raises(error):
                fit(10, method=method, **kwargs)
        else:
            fit(10, method=method, **kwargs)
Example #3
0
 def test_approximate(self):
     with models.multidimensional_model()[1]:
         fit(10, method='fullrank_advi')
Example #4
0
 def test_combined(self):
     with models.multidimensional_model()[1]:
         fit(10, method='advi->fullrank_advi', frac=.5)