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)
def test_approximate(self): with models.multidimensional_model()[1]: fit(10, method='fullrank_advi')
def test_combined(self): with models.multidimensional_model()[1]: fit(10, method='advi->fullrank_advi', frac=.5)