Skip to content

nn-models typings fix #840

Merged
merged 17 commits into from Aug 10, 2022
Merged

nn-models typings fix #840

merged 17 commits into from Aug 10, 2022

Conversation

scanhex12
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 #768

@scanhex12 scanhex12 changed the title Etna 768 nn-models typings fix Aug 8, 2022
@github-actions
Copy link

github-actions bot commented Aug 8, 2022

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

@github-actions github-actions bot temporarily deployed to pull request August 8, 2022 11:38 Inactive
@github-actions github-actions bot temporarily deployed to pull request August 8, 2022 11:50 Inactive
@github-actions github-actions bot temporarily deployed to pull request August 8, 2022 12:00 Inactive
@github-actions github-actions bot temporarily deployed to pull request August 8, 2022 12:09 Inactive
@github-actions github-actions bot temporarily deployed to pull request August 8, 2022 12:20 Inactive
@codecov-commenter
Copy link

codecov-commenter commented Aug 8, 2022

Codecov Report

Merging #840 (490bc8c) into master (7ef6231) will decrease coverage by 0.00%.
The diff coverage is 91.66%.

@@            Coverage Diff             @@
##           master     #840      +/-   ##
==========================================
- Coverage   84.64%   84.64%   -0.01%     
==========================================
  Files         130      130              
  Lines        7450     7455       +5     
==========================================
+ Hits         6306     6310       +4     
- Misses       1144     1145       +1     
Impacted Files Coverage Δ
etna/models/base.py 87.59% <83.33%> (-0.15%) ⬇️
etna/models/nn/deepar.py 100.00% <100.00%> (ø)
etna/models/nn/tft.py 100.00% <100.00%> (ø)

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@github-actions github-actions bot temporarily deployed to pull request August 8, 2022 12:46 Inactive
@martins0n martins0n self-requested a review August 8, 2022 17:03
@@ -820,4 +820,70 @@ def get_model(self) -> "DeepBaseNet":
return self.net


BaseModel = Union[PerSegmentModel, PerSegmentPredictionIntervalModel, MultiSegmentModel, DeepBaseModel]
class MultiSegmentPredictionIntervalModel(FitAbstractModel, PredictIntervalAbstractModel, BaseMixin):
Copy link
Contributor

Choose a reason for hiding this comment

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

It seems we need just empty class without any implementation.

Downstream classes has implemented own logic already. Seems we can't share it

@github-actions github-actions bot temporarily deployed to pull request August 10, 2022 12:01 Inactive
@@ -26,7 +26,7 @@
from pytorch_lightning import LightningModule


class TFTModel(Model, PredictIntervalAbstractModel, _DeepCopyMixin):
class TFTModel(Model, MultiSegmentPredictionIntervalModel, _DeepCopyMixin):
Copy link
Contributor

Choose a reason for hiding this comment

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

We don't need Model here, I guess it's already in MultiSegmentPredictionIntervalModel?

@github-actions github-actions bot temporarily deployed to pull request August 10, 2022 12:39 Inactive
Copy link
Contributor

@martins0n martins0n left a comment

Choose a reason for hiding this comment

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

👍

@martins0n martins0n merged commit 2b8a527 into master Aug 10, 2022
@martins0n martins0n deleted the ETNA-768 branch August 10, 2022 14:01
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.

Type hints for Pipeline.model don't match models.nn
3 participants