From ca9a49d328ab1f2a991f246a3ebc37a7f9c896c5 Mon Sep 17 00:00:00 2001 From: Maxim Grishin Date: Sat, 26 Oct 2019 00:01:28 +0300 Subject: [PATCH] Add test for MCMC with 0 changepoints --- python/fbprophet/tests/test_prophet.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/fbprophet/tests/test_prophet.py b/python/fbprophet/tests/test_prophet.py index ad3cae0..8dc297a 100644 --- a/python/fbprophet/tests/test_prophet.py +++ b/python/fbprophet/tests/test_prophet.py @@ -55,6 +55,10 @@ class TestProphet(TestCase): forecaster.fit(train) forecaster.predict(future) + forecaster = Prophet(n_changepoints=0, mcmc_samples=100) + forecaster.fit(train) + forecaster.predict(future) + def test_fit_changepoint_not_in_history(self): train = DATA[(DATA['ds'] < '2013-01-01') | (DATA['ds'] > '2014-01-01')] future = pd.DataFrame({'ds': DATA['ds']})