MCPcopy Create free account
hub / github.com/Kaggle/docker-python / test_fit

Method test_fit

tests/test_prophet.py:9–18  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7
8class TestProphet(unittest.TestCase):
9 def test_fit(self):
10 train = pd.DataFrame({
11 'ds': np.array(['2012-05-18', '2012-05-19', '2012-05-20', '2012-05-21', '2012-05-22']),
12 'y': np.array([38.23, 21.25, 20.18, 20.01, 19.02])
13 })
14
15 forecaster = Prophet(mcmc_samples=1)
16 forecaster.fit(train, adapt_engaged=False)
17
18 self.assertEqual(len(train) + 1, len(forecaster.make_future_dataframe(periods=1)))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected