Skip to content

Add logging to TSDataset.make_future #555

Merged
merged 7 commits into from Feb 24, 2022
Merged

Add logging to TSDataset.make_future #555

merged 7 commits into from Feb 24, 2022

Conversation

Mr-Geekman
Copy link
Contributor

@Mr-Geekman Mr-Geekman commented Feb 21, 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

Look #553.

Related Issue

#553.

Closing issues

Closes #553.

@Mr-Geekman Mr-Geekman added the enhancement New feature or request label Feb 21, 2022
@Mr-Geekman Mr-Geekman self-assigned this Feb 21, 2022
@codecov-commenter
Copy link

codecov-commenter commented Feb 21, 2022

Codecov Report

Merging #555 (f54d6bd) into master (1e1b6e3) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #555   +/-   ##
=======================================
  Coverage   87.28%   87.28%           
=======================================
  Files         118      118           
  Lines        5692     5693    +1     
=======================================
+ Hits         4968     4969    +1     
  Misses        724      724           
Impacted Files Coverage Δ
etna/core/mixins.py 95.65% <100.00%> (ø)
etna/datasets/tsdataset.py 90.08% <100.00%> (+0.02%) ⬆️

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 1e1b6e3...f54d6bd. Read the comment docs.

@@ -288,6 +288,7 @@ def make_future(self, future_steps: int) -> "TSDataset":

if self.transforms is not None:
for transform in self.transforms:
tslogger.log(f"Transform {transform.__class__.__name__} is applied to dataset")
Copy link
Contributor

Choose a reason for hiding this comment

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

why not transform.__repr__()?
if you have smth like transforms=[LagTransform(in_column="target", ...), LagTransform(in_column="exog", ...)] there are two different transforms of the same class

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Here I just repeat code from TSDataset.transform. If wee want this, I can change it in both places and in TSDataset.fit_transform too.

tests/test_loggers/test_console_logger.py Show resolved Hide resolved
@martins0n martins0n enabled auto-merge (squash) February 24, 2022 16:43
@martins0n martins0n merged commit e98e966 into master Feb 24, 2022
@iKintosh iKintosh deleted the issue-553 branch March 22, 2022 08:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add logging to TSDataset.make_future
4 participants