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 ResampleWithDistributionTransform with holidays transform #82

Merged
merged 4 commits into from Sep 13, 2023

Conversation

egoriyaa
Copy link
Collaborator

@egoriyaa egoriyaa commented Sep 11, 2023

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 #34

@codecov
Copy link

codecov bot commented Sep 11, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.12% 🎉

Comparison is base (15018ed) 89.11% compared to head (aea931c) 89.23%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #82      +/-   ##
==========================================
+ Coverage   89.11%   89.23%   +0.12%     
==========================================
  Files         194      205      +11     
  Lines       12491    12807     +316     
==========================================
+ Hits        11131    11428     +297     
- Misses       1360     1379      +19     
Files Changed Coverage Δ
etna/transforms/missing_values/resample.py 97.18% <100.00%> (+0.04%) ⬆️

... and 12 files with indirect coverage changes

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

@github-actions
Copy link

github-actions bot commented Sep 11, 2023

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

@github-actions github-actions bot temporarily deployed to pull request September 11, 2023 19:53 Inactive
CHANGELOG.md Outdated Show resolved Hide resolved
etna/transforms/missing_values/resample.py Show resolved Hide resolved
@github-actions github-actions bot temporarily deployed to pull request September 12, 2023 08:40 Inactive
@@ -132,3 +136,16 @@ def test_get_regressors_info_not_fitted():
def test_params_to_tune():
transform = ResampleWithDistributionTransform(in_column="regressor_exog", distribution_column="target")
assert len(transform.params_to_tune()) == 0


def test_working_with_categorical_columns(example_tsds):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure that we need pipeline here, we just want to check that fit_transform works with categoricals. Try to be more minimalistic

@github-actions github-actions bot temporarily deployed to pull request September 13, 2023 07:31 Inactive
@alex-hse-repository alex-hse-repository merged commit adfd18c into master Sep 13, 2023
15 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] ResampleWithDistributionTransform with holidays transform
2 participants