get_residuals¶
- get_residuals(forecast_df: pandas.core.frame.DataFrame, ts: TSDataset) TSDataset [source]¶
Get residuals for further analysis.
- Parameters
forecast_df (pandas.core.frame.DataFrame) – forecasted dataframe with timeseries data
ts (TSDataset) – dataset of timeseries that has answers to forecast
- Returns
new_ts – TSDataset with residuals in forecasts
- Return type
- Raises
KeyError: – if segments of
forecast_df
andts
aren’t the same
Notes
Transforms are taken as is from
ts
.