Skip to content

Change the way Sklearn models works with regressors #440

Merged
merged 4 commits into from Jan 11, 2022

Conversation

alex-hse-repository
Copy link
Collaborator

@alex-hse-repository alex-hse-repository commented Jan 10, 2022

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

@alex-hse-repository alex-hse-repository added the enhancement New feature or request label Jan 10, 2022
@alex-hse-repository alex-hse-repository added this to the Regressors 2.0 milestone Jan 10, 2022
@alex-hse-repository alex-hse-repository self-assigned this Jan 10, 2022
@alex-hse-repository alex-hse-repository linked an issue Jan 10, 2022 that may be closed by this pull request
1 task
@codecov-commenter
Copy link

codecov-commenter commented Jan 10, 2022

Codecov Report

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

Impacted file tree graph

@@                      Coverage Diff                      @@
##             breaking_change/regressors     #440   +/-   ##
=============================================================
  Coverage                              ?   87.66%           
=============================================================
  Files                                 ?       96           
  Lines                                 ?     4757           
  Branches                              ?        0           
=============================================================
  Hits                                  ?     4170           
  Misses                                ?      587           
  Partials                              ?        0           

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 e6f8556...ece0e28. Read the comment docs.

from etna.transforms.lags import LagTransform


@pytest.fixture()
Copy link
Contributor

Choose a reason for hiding this comment

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

We usually remove () in line @pytest.fixture



@pytest.mark.parametrize("model", ([SklearnPerSegmentModel(regressor=LinearRegression())]))
def test_sklearn_persegment_model_saves_regressors(ts_with_regressors, model):
Copy link
Contributor

Choose a reason for hiding this comment

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

Add description to the test like "Test that ..."

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Change the way Sklearn models works with regressors
3 participants