Skip to content

Implement predict in ensembles #972

Merged
merged 4 commits into from
Oct 5, 2022
Merged

Implement predict in ensembles #972

merged 4 commits into from
Oct 5, 2022

Conversation

Mr-Geekman
Copy link
Contributor

@Mr-Geekman Mr-Geekman commented Oct 3, 2022

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

Look #959.

Closing issues

Closes #959.

@Mr-Geekman Mr-Geekman self-assigned this Oct 3, 2022
@github-actions
Copy link

github-actions bot commented Oct 3, 2022

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

@github-actions github-actions bot temporarily deployed to pull request October 3, 2022 16:04 Inactive
tests/test_ensembles/test_stacking_ensemble.py Outdated Show resolved Hide resolved
tests/test_ensembles/test_stacking_ensemble.py Outdated Show resolved Hide resolved
tests/test_ensembles/test_stacking_ensemble.py Outdated Show resolved Hide resolved
tests/test_ensembles/test_stacking_ensemble.py Outdated Show resolved Hide resolved
tests/test_ensembles/test_voting_ensemble.py Show resolved Hide resolved
tests/test_ensembles/test_voting_ensemble.py Show resolved Hide resolved
def test_forecast_calls_vote(example_tsds: TSDataset, naive_pipeline_1: Pipeline, naive_pipeline_2: Pipeline):
ensemble = VotingEnsemble(pipelines=[naive_pipeline_1, naive_pipeline_2])
ensemble.fit(ts=example_tsds)
ensemble._vote = MagicMock()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we actually need MagicMock here, why not just Mock?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just use MagicMock everywhere. Should I replace it with Mock?

Copy link
Collaborator

Choose a reason for hiding this comment

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

As i understand MagicMock is useful testing the magic methods, but here we don't need it

@github-actions github-actions bot temporarily deployed to pull request October 4, 2022 15:45 Inactive
@codecov-commenter
Copy link

codecov-commenter commented Oct 4, 2022

Codecov Report

❗ No coverage uploaded for pull request base (inference@e1399fb). Click here to learn what that means.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             inference     #972   +/-   ##
============================================
  Coverage             ?   85.25%           
============================================
  Files                ?      132           
  Lines                ?     7710           
  Branches             ?        0           
============================================
  Hits                 ?     6573           
  Misses               ?     1137           
  Partials             ?        0           

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

@alex-hse-repository alex-hse-repository merged commit 70c7b0b into inference Oct 5, 2022
@Mr-Geekman Mr-Geekman mentioned this pull request Oct 26, 2022
4 tasks
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.

None yet

3 participants