def test_error_fit_twice_set_features_only_models( self, time_series, time_series_forecasting_model1_cache, features2): time_series_forecasting_model1_cache.fit(time_series) time_series_forecasting_model1_cache.set_params(features=features2) with pytest.raises(sklearn.exceptions.NotFittedError): time_series_forecasting_model1_cache.fit(time_series, only_model=True)
def test_fit_twice_set_model_only_models( self, time_series, time_series_forecasting_model1_cache, model2): time_series_forecasting_model1_cache.fit(time_series) time_series_forecasting_model1_cache.set_params(model=model2) time_series_forecasting_model1_cache.fit(time_series, only_model=True)