plot_backtest

plot_backtest(forecast_df: pandas.core.frame.DataFrame, ts: TSDataset, segments: Optional[List[str]] = None, folds: Optional[List[int]] = None, columns_num: int = 2, history_len: int = 0, figsize: Tuple[int, int] = (10, 5))[source]

Plot targets and forecast for backtest pipeline.

Parameters
  • forecast_df (pandas.core.frame.DataFrame) – forecasted dataframe with timeseries data

  • ts (TSDataset) – dataframe of timeseries that was used for backtest

  • segments (Optional[List[str]]) – segments to plot

  • folds (Optional[List[int]]) – folds to plot

  • columns_num (int) – number of subplots columns

  • history_len (int) – length of pre-backtest history to plot

  • figsize (Tuple[int, int]) – size of the figure per subplot with one segment in inches