Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Non-deterministic order of segments during plotting #23

Closed
1 task done
Mr-Geekman opened this issue Aug 14, 2023 · 0 comments
Closed
1 task done

[BUG] Non-deterministic order of segments during plotting #23

Mr-Geekman opened this issue Aug 14, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Mr-Geekman
Copy link

Issue by Mr-Geekman
Thursday Jan 19, 2023 at 08:05 GMT
Originally opened as tinkoff-ai#1074


🐛 Bug Report

If you run ts.plot on the same dataset in different jupyter sessions, the sequence of segments will be different. May be it will be better if order will be the same each time.

Expected behavior

Order of segments during plotting is the same for all plotting methods that use different plots for each segment.

Probable solution is to make look at plotting functions and sort the segments inside them.

Places to fix:

  • analysis.decomposition.plot_trend: sort ts.segments
  • analysis.forecast.plot_forecast: sort segments
  • analysis.forecast.plot_forecast_decomposition: sort segments
  • datasets.tsdataset.TSDataset.plot: sort segments

How To Reproduce

  1. Run get_started notebook.
  2. Restart kernel and rerun get_started notebook and check that order of segments in plot_forecast changed.

Environment

No response

Additional context

No response

Checklist

  • Bug appears at the latest library version
@Mr-Geekman Mr-Geekman added the bug Something isn't working label Aug 14, 2023
@etna-team etna-team locked and limited conversation to collaborators May 30, 2024
@d-a-bunin d-a-bunin converted this issue into discussion #368 May 30, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

1 participant