Skip to content

Add target components logic to pipelines #1173

Merged
merged 16 commits into from
Mar 22, 2023
Merged

Conversation

alex-hse-repository
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 #1167

@alex-hse-repository alex-hse-repository self-assigned this Mar 17, 2023
@github-actions
Copy link

github-actions bot commented Mar 17, 2023

@github-actions github-actions bot temporarily deployed to pull request March 17, 2023 14:32 Inactive
@codecov-commenter
Copy link

codecov-commenter commented Mar 17, 2023

Codecov Report

Merging #1173 (c55955a) into master (a8da110) will decrease coverage by 0.14%.
The diff coverage is 97.43%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##           master    #1173      +/-   ##
==========================================
- Coverage   86.93%   86.79%   -0.14%     
==========================================
  Files         177      166      -11     
  Lines       10063     9785     -278     
==========================================
- Hits         8748     8493     -255     
+ Misses       1315     1292      -23     
Impacted Files Coverage Δ
etna/pipeline/base.py 94.36% <75.00%> (+0.01%) ⬆️
etna/ensembles/direct_ensemble.py 95.00% <100.00%> (+0.35%) ⬆️
etna/ensembles/stacking_ensemble.py 96.61% <100.00%> (+0.11%) ⬆️
etna/ensembles/voting_ensemble.py 94.56% <100.00%> (+0.24%) ⬆️
etna/pipeline/autoregressive_pipeline.py 96.92% <100.00%> (+0.31%) ⬆️
etna/pipeline/hierarchical_pipeline.py 98.59% <100.00%> (+0.08%) ⬆️
etna/pipeline/mixins.py 99.02% <100.00%> (ø)
etna/pipeline/pipeline.py 97.95% <100.00%> (ø)

... and 21 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@github-actions github-actions bot temporarily deployed to pull request March 17, 2023 16:17 Inactive
etna/ensembles/direct_ensemble.py Outdated Show resolved Hide resolved
etna/pipeline/base.py Show resolved Hide resolved
etna/pipeline/base.py Show resolved Hide resolved
@@ -252,7 +252,7 @@ def test_forecast_calls_process_forecasts(example_tsds: TSDataset, naive_ensembl
naive_ensemble.fit(ts=example_tsds)
naive_ensemble._process_forecasts = MagicMock()

result = naive_ensemble._forecast()
result = naive_ensemble._forecast(return_components=False)
Copy link
Contributor

Choose a reason for hiding this comment

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

Why should we add return_components=False here? Is it because we don't have default value here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, as return_components should be passed from the public method, otherwise we might forget to pass it and everything will still work

tests/test_pipeline/test_pipeline.py Outdated Show resolved Hide resolved
@github-actions github-actions bot temporarily deployed to pull request March 21, 2023 10:12 Inactive
@github-actions github-actions bot temporarily deployed to pull request March 21, 2023 15:59 Inactive
@alex-hse-repository alex-hse-repository merged commit 65aef8e into master Mar 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add target components logic to pipelines
3 participants