mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-07-27 20:02:18 +00:00
Add test for MCMC with 0 changepoints
This commit is contained in:
parent
a6646670b9
commit
ca9a49d328
1 changed files with 4 additions and 0 deletions
|
|
@ -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']})
|
||||
|
|
|
|||
Loading…
Reference in a new issue