(self)
| 7 | |
| 8 | class 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))) |
nothing calls this directly
no outgoing calls
no test coverage detected