plot_backtest_interactive

plot_backtest_interactive(forecast_df: pandas.core.frame.DataFrame, ts: TSDataset, segments: Optional[List[str]] = None, folds: Optional[List[int]] = None, history_len: int = 0, figsize: Tuple[int, int] = (900, 600)) plotly.graph_objs._figure.Figure[source]

Plot targets and forecast for backtest pipeline using plotly.

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

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

  • figsize (Tuple[int, int]) – size of the figure in pixels

Returns

result of plotting

Return type

go.Figure