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

fix: time index intersection for coefficient of variation #2202

Merged
merged 7 commits into from
Feb 5, 2024

Conversation

madtoinou
Copy link
Collaborator

Fixes #2157.

Summary

  • use _get_values_or_raise in coefficient_of_variation to have the appropriate denominator when intersect = True

@codecov-commenter
Copy link

codecov-commenter commented Feb 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (8cb04f6) 93.88% compared to head (d5be535) 93.87%.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2202      +/-   ##
==========================================
- Coverage   93.88%   93.87%   -0.02%     
==========================================
  Files         135      135              
  Lines       13425    13412      -13     
==========================================
- Hits        12604    12590      -14     
- Misses        821      822       +1     

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

darts/metrics/metrics.py Show resolved Hide resolved
darts/metrics/metrics.py Show resolved Hide resolved
Copy link
Collaborator

@dennisbader dennisbader left a comment

Choose a reason for hiding this comment

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

Looks great, thanks @madtoinou.

We could maybe take this chance, to update the return docs for all metrics? In the end the docs are user facing and it might be misleading if the return type does not reflect both cases handled by the wrappers.

darts/metrics/metrics.py Show resolved Hide resolved
@dennisbader dennisbader merged commit 1d7d854 into master Feb 5, 2024
7 of 9 checks passed
@dennisbader dennisbader deleted the fix/metric_index_intersection branch February 5, 2024 12:42
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] Coefficient of Variation Calculation Between Two TimeSeries Intersection
4 participants