Skip to content

Add optional ts into AbstractPipeline.forecast #1071

Merged
merged 11 commits into from
Jan 19, 2023
Merged

Conversation

Mr-Geekman
Copy link
Contributor

@Mr-Geekman Mr-Geekman commented Jan 16, 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 #1069.

Closing issues

Closes #1069.

@Mr-Geekman Mr-Geekman self-assigned this Jan 16, 2023
@Mr-Geekman Mr-Geekman marked this pull request as ready for review January 16, 2023 16:08
d.a.bunin added 2 commits January 16, 2023 19:09
@github-actions
Copy link

github-actions bot commented Jan 16, 2023

@github-actions github-actions bot temporarily deployed to pull request January 16, 2023 16:15 Inactive
@github-actions github-actions bot temporarily deployed to pull request January 16, 2023 16:45 Inactive
@codecov-commenter
Copy link

codecov-commenter commented Jan 16, 2023

Codecov Report

Merging #1071 (38385ef) into inference-v2.1 (c04bf64) will decrease coverage by 18.59%.
The diff coverage is 81.39%.

@@                 Coverage Diff                 @@
##           inference-v2.1    #1071       +/-   ##
===================================================
- Coverage           86.51%   67.93%   -18.59%     
===================================================
  Files                 164      164               
  Lines                8901     8885       -16     
===================================================
- Hits                 7701     6036     -1665     
- Misses               1200     2849     +1649     
Impacted Files Coverage Δ
etna/models/base.py 60.43% <0.00%> (-25.83%) ⬇️
etna/pipeline/base.py 80.71% <62.50%> (-13.93%) ⬇️
etna/pipeline/pipeline.py 90.19% <75.00%> (-7.73%) ⬇️
etna/ensembles/stacking_ensemble.py 79.62% <88.88%> (-16.87%) ⬇️
etna/ensembles/direct_ensemble.py 40.74% <100.00%> (-53.91%) ⬇️
etna/ensembles/mixins.py 53.16% <100.00%> (-46.84%) ⬇️
etna/ensembles/voting_ensemble.py 71.42% <100.00%> (-22.89%) ⬇️
etna/models/mixins.py 84.31% <100.00%> (-11.72%) ⬇️
etna/pipeline/autoregressive_pipeline.py 94.54% <100.00%> (-2.07%) ⬇️
etna/commands/__main__.py 0.00% <0.00%> (-87.50%) ⬇️
... and 68 more

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

@github-actions github-actions bot temporarily deployed to pull request January 17, 2023 09:44 Inactive
@github-actions github-actions bot temporarily deployed to pull request January 17, 2023 11:57 Inactive
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions github-actions bot temporarily deployed to pull request January 17, 2023 15:46 Inactive
@martins0n martins0n self-requested a review January 18, 2023 09:24
future_ts.df.loc[:, pd.IndexSlice[segment, feature_nm]] = value[:prediction_size, :]
# we don't want to change dtype after assignment, but there can happen cast to float32
dtype = future_ts.df.loc[:, pd.IndexSlice[segment, feature_nm]]
future_ts.df.loc[:, pd.IndexSlice[segment, feature_nm]] = value[:prediction_size, :].astype(dtype)
Copy link
Contributor

Choose a reason for hiding this comment

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

May be we should cast to float64 instead if we suppose 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 just think that using current dtype will be more safe in the future.

@review-notebook-app
Copy link

review-notebook-app bot commented Jan 19, 2023

View / edit / reply to this conversation on ReviewNB

martins0n commented on 2023-01-19T07:28:58Z
----------------------------------------------------------------

It's interesting why the order has changed 🤔


Mr-Geekman commented on 2023-01-19T07:48:55Z
----------------------------------------------------------------

We have non-deterministic order of segments during plot. Do we want to fix that?

Mr-Geekman commented on 2023-01-19T07:49:10Z
----------------------------------------------------------------

I think it is related to set of segments somehow.

Copy link
Contributor Author

We have non-deterministic order of segments during plot. Do we want to fix that?


View entire conversation on ReviewNB

Copy link
Contributor Author

I think it is related to set of segments somehow.


View entire conversation on ReviewNB

@github-actions github-actions bot temporarily deployed to pull request January 19, 2023 08:16 Inactive
@github-actions github-actions bot temporarily deployed to pull request January 19, 2023 09:41 Inactive
@Mr-Geekman Mr-Geekman merged commit cda774e into inference-v2.1 Jan 19, 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.

3 participants