def test_forecast(self): fc = wrappers.forecast(self.oil) self.assertAlmostEqual(fc.point_fc[2011], 467.7721, places=3) self.assertAlmostEqual(fc.point_fc[2020], 467.7721, places=3) self.assertAlmostEqual(fc.lower80[2011], 405.3255, places=3) self.assertAlmostEqual(fc.upper95[2020], 769.7543, places=3) fc = wrappers.forecast(self.aus) self.assertAlmostEqual(fc.point_fc[(2011, 1)], 57.87294, places=3) self.assertAlmostEqual(fc.point_fc[(2012, 4)], 52.84327, places=3) self.assertAlmostEqual(fc.lower80[(2011, 1)], 53.30794, places=3) self.assertAlmostEqual(fc.upper95[(2012, 4)], 62.60852, places=3)
def test_forecast_seasonal(self): fc_py = wrappers.forecast(self.aus_py) fc_r = self.fc.forecast(self.aus_r) self._check_points(fc_py, fc_r)