Move decomposition module into methods sub-package

- move the module
- unify the corresponding tests in `tests.forecasts.methods` sub-package
- make all `predict()` and the `stl()` function round results
- streamline documentation
This commit is contained in:
Alexander Hess 2021-01-31 18:50:24 +01:00
commit 08b748c867
Signed by: alexander
GPG key ID: 344EA5AB10D868E0
9 changed files with 21 additions and 14 deletions

View file

@ -14,7 +14,7 @@ def predict(
) -> pd.DataFrame:
"""Predict with an automatically chosen ARIMA model.
Note: The function does not check if the `forecast` interval
Note: The function does not check if the `forecast_interval`
extends the `training_ts`'s interval without a gap!
Args:
@ -65,7 +65,7 @@ def predict(
forecasts = pandas2ri.rpy2py(result)
forecasts.index = forecast_interval
return forecasts.rename(
return forecasts.round(5).rename(
columns={
'Point Forecast': 'prediction',
'Lo 80': 'low80',