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:
parent
a5b590b24c
commit
08b748c867
9 changed files with 21 additions and 14 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue