Skip to content

Create prediction_error_plot #590

Closed
1 task
alex-hse-repository opened this issue Mar 10, 2022 · 0 comments 路 Fixed by #610
Closed
1 task

Create prediction_error_plot #590

alex-hse-repository opened this issue Mar 10, 2022 · 0 comments 路 Fixed by #610
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@alex-hse-repository
Copy link
Collaborator

馃殌 Feature Request

Create method which plot the actual targets from the dataset against the predicted values generated by the model

Motivation

This allows to see how much variance is in the model

Proposal

Create method:

def prediction_error_plot(
    forecast_df: pd.DataFrame,
    ts: "TSDataset",
    segments: Optional[List[str]] = None,
    columns_num: int = 2,
    figsize: Tuple[int, int] = (10, 5),
):

Where:
forecast_df - forecasts from backtest
ts - dataset that was used for backtest

  • For each segment create the scatter plot of targets against predicted values, add identity line and best fit for linear regression(see the picture)

Add picture with visualization example to PR

Test cases

No response

Alternatives

No response

Additional context

peplot-2

Checklist

  • I discussed this issue with ETNA Team
@alex-hse-repository alex-hse-repository added the enhancement New feature or request label Mar 10, 2022
@alex-hse-repository alex-hse-repository added this to the EDA milestone Mar 10, 2022
@Mr-Geekman Mr-Geekman self-assigned this Mar 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants