etna.analysis.plot_backtest_interactive#

plot_backtest_interactive(forecast_df: DataFrame, ts: TSDataset, segments: List[str] | None = None, history_len: int | Literal['all'] = 0, figsize: Tuple[int, int] = (900, 600)) Figure[source]#

Plot targets and forecast for backtest pipeline using plotly.

Parameters:
  • forecast_df (DataFrame) – forecasted dataframe with timeseries data

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

  • segments (List[str] | None) – segments to plot

  • history_len (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

Raises:
  • ValueError: – if history_len is negative

  • ValueError: – if folds are intersecting

Return type:

Figure