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

1862 more robust way of component naming #1863

Merged

Conversation

anne-devries
Copy link
Contributor

Fixes #1862 .

Summary

changed category mappings such that static covariate components now are of the form <original_column_name>_<value1>, <original_column_name>_<value2>, instead of <value1>, <value2>. To account for cases where you have one category that is used by two (or more) static covariates. E.g. temperature could be low/medium/high, and sun_hours could be low/medium/high.

@codecov-commenter
Copy link

codecov-commenter commented Jun 28, 2023

Codecov Report

Patch coverage: 83.33% and project coverage change: -0.14 ⚠️

Comparison is base (b668a4e) 94.29% compared to head (9e17934) 94.16%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1863      +/-   ##
==========================================
- Coverage   94.29%   94.16%   -0.14%     
==========================================
  Files         125      125              
  Lines       11636    11627       -9     
==========================================
- Hits        10972    10948      -24     
- Misses        664      679      +15     
Impacted Files Coverage Δ
...sing/transformers/static_covariates_transformer.py 97.36% <83.33%> (-1.96%) ⬇️

... and 10 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

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.

Thanks for this @anne-devries 🚀

Edit: Looks really good! Let's just slightly update the CHANGELOG entry and then we're good to go :)

CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Dennis Bader <dennis.bader@gmx.ch>
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.

Thank you @anne-devries 💯 🚀

@dennisbader dennisbader merged commit 859f730 into unit8co:master Jun 28, 2023
9 checks passed
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] components name doesn't cover situation where multiple stat covariates contain the same category
3 participants