Skip to content

Add VotingEnsemble #150

Merged
merged 5 commits into from
Oct 8, 2021
Merged

Add VotingEnsemble #150

merged 5 commits into from
Oct 8, 2021

Conversation

julia-shenshina
Copy link
Contributor

IMPORTANT: Please do not create a Pull Request without creating an issue first.

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?

Type of Change

  • Examples / docs / tutorials / contributors update
  • Bug fix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves an existing feature)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Proposed Changes

Related Issue

Closing issues

closes #119

@codecov-commenter
Copy link

codecov-commenter commented Oct 7, 2021

Codecov Report

Merging #150 (6d894fc) into master (78f20d2) will increase coverage by 0.23%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #150      +/-   ##
==========================================
+ Coverage   87.18%   87.42%   +0.23%     
==========================================
  Files          71       73       +2     
  Lines        3105     3164      +59     
==========================================
+ Hits         2707     2766      +59     
  Misses        398      398              
Impacted Files Coverage Δ
etna/ensembles/__init__.py 100.00% <100.00%> (ø)
etna/ensembles/voting_ensemble.py 100.00% <100.00%> (ø)
etna/pipeline/pipeline.py 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 78f20d2...6d894fc. Read the comment docs.

@julia-shenshina julia-shenshina self-assigned this Oct 7, 2021
iKintosh
iKintosh previously approved these changes Oct 7, 2021
"""Get average forecast."""
forecast_df = forecasts[0][:, :, "target"] * self.weights[0]
for forecast, weight in zip(forecasts[1:], self.weights[1:]):
forecast_df += forecast[:, :, "target"] * weight
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you sure this is a good practice?
Probably we can make this computation with only one pass

CHANGELOG.md Show resolved Hide resolved
@iKintosh
Copy link
Contributor

iKintosh commented Oct 8, 2021

👍

@julia-shenshina julia-shenshina merged commit aa463ed into master Oct 8, 2021
@iKintosh iKintosh deleted the feature/voting-ensemble branch November 18, 2021 15:49
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 VotingEnsemble class
4 participants