Skip to content
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] Forecast visualization with horizon=1 #426

Merged
merged 3 commits into from
Jul 18, 2024
Merged

[BUG] Forecast visualization with horizon=1 #426

merged 3 commits into from
Jul 18, 2024

Conversation

egoriyaa
Copy link
Collaborator

Before submitting (must do checklist)

  • Did you read the contribution guide?
  • Did you update the docs? We use Numpy format for all the methods and classes.
  • Did you write any new necessary tests?
  • Did you update the CHANGELOG?

Proposed Changes

Closing issues

closes #303

@egoriyaa egoriyaa self-assigned this Jul 16, 2024
@egoriyaa
Copy link
Collaborator Author

Visualisation with horizon=1

image

Copy link

github-actions bot commented Jul 16, 2024

🚀 Deployed on https://deploy-preview-426--etna-docs.netlify.app

@github-actions github-actions bot temporarily deployed to pull request July 16, 2024 09:48 Inactive
@@ -182,7 +189,7 @@ def plot_forecast(
segment_borders_df.index.values,
values_low,
values_high,
facecolor=forecast_color,
color=forecast_color,
alpha=alpha[interval_idx],
Copy link
Collaborator Author

@egoriyaa egoriyaa Jul 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because of these alphas fillings become transparent and it is not seen.
We need to discuss how to calculate them

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What was the logic of calculating current alpha?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you explain or provide an example when filling is not seen?
Current logic is based on the ability to support nested intervals. So, if we plot them, we can easily see them at different levels of transparancy.

For example
image

@egoriyaa egoriyaa requested a review from brsnw250 July 16, 2024 09:54
@brsnw250
Copy link
Collaborator

Visualisation with horizon=1

image

How this will look in case, when we have intervals ?

@egoriyaa
Copy link
Collaborator Author

egoriyaa commented Jul 17, 2024

Visualisation with horizon=1
image

How this will look in case, when we have intervals ?

I said that they were not seen before and are not seen now because fillings are transparent. We need to discuss it

@egoriyaa egoriyaa requested a review from brsnw250 July 17, 2024 08:46
@egoriyaa
Copy link
Collaborator Author

Results:

  1. Without intervals
image 2. With intervals image 3. With one interval image

@github-actions github-actions bot temporarily deployed to pull request July 18, 2024 08:18 Inactive
Copy link

codecov bot commented Jul 18, 2024

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Project coverage is 9.51%. Comparing base (4a8bbb5) to head (c70be89).
Report is 3 commits behind head on master.

Files Patch % Lines
etna/analysis/forecast/plots.py 0.00% 6 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           master    #426      +/-   ##
=========================================
- Coverage    9.61%   9.51%   -0.10%     
=========================================
  Files         226     227       +1     
  Lines       15594   15757     +163     
=========================================
  Hits         1500    1500              
- Misses      14094   14257     +163     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@egoriyaa egoriyaa merged commit 3553761 into master Jul 18, 2024
16 checks passed
@egoriyaa egoriyaa deleted the issue-303 branch September 9, 2024 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Forecast visualization with horizon=1
2 participants