plot_backtest_interactive

plot_backtest_interactive(forecast_df: pandas.core.frame.DataFrame, ts: TSDataset, segments: Optional[List[str]] = None, history_len: Union[int, Literal['all']] = 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

  • history_len (Union[int, Literal['all']]) – length of pre-backtest history to plot, if value is “all” then plot all the history

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

Returns

result of plotting

Return type

go.Figure

Raises
  • ValueError: – if history_len is negative

  • ValueError: – if folds are intersecting