Skip to content

Implement tests on inference scenarios for models #1082

Merged
merged 10 commits into from
Jan 31, 2023

Conversation

Mr-Geekman
Copy link
Contributor

@Mr-Geekman Mr-Geekman commented Jan 26, 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

Look #1076. Also added tests on MLPModel.

Closing issues

Closes #1076.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@Mr-Geekman Mr-Geekman changed the base branch from master to inference-v2.1 January 26, 2023 12:48
@codecov-commenter
Copy link

codecov-commenter commented Jan 26, 2023

Codecov Report

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

📣 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                @@
##             inference-v2.1    #1082   +/-   ##
=================================================
  Coverage                  ?   86.50%           
=================================================
  Files                     ?      164           
  Lines                     ?     8887           
  Branches                  ?        0           
=================================================
  Hits                      ?     7688           
  Misses                    ?     1199           
  Partials                  ?        0           

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

@github-actions
Copy link

github-actions bot commented Jan 26, 2023

@github-actions github-actions bot temporarily deployed to pull request January 26, 2023 12:56 Inactive
@Mr-Geekman Mr-Geekman self-assigned this Jan 26, 2023
),
],
)
def test_forecast_new_segments(self, model, transforms, 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.

I guess we can use lags in all the test case to simplify parametrization

with pytest.raises(KeyError, match="Unknown category"):
self._test_forecast_new_segments(example_tsds, model, transforms, train_segments=["segment_1"])

@to_be_fixed(raises=NotImplementedError, match="Per-segment models can't make predictions on new segments")
Copy link
Collaborator

Choose a reason for hiding this comment

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

How we are going to fix it?

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 don't really know how. We can potentially make it possible for naive models, but for other models I don't think we can do smth like that.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's try to make it possible for naive models, if don't come to simple solution may be it is better to skip it

@github-actions github-actions bot temporarily deployed to pull request January 30, 2023 10:00 Inactive
@github-actions github-actions bot temporarily deployed to pull request January 30, 2023 15:00 Inactive
@alex-hse-repository alex-hse-repository merged commit 892945e into inference-v2.1 Jan 31, 2023
This was referenced Mar 21, 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.

Implement tests on inference scenarios for models
3 participants