Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update pipelines to handle integer timestamp #241

Merged
merged 4 commits into from Feb 16, 2024
Merged

Conversation

d-a-bunin
Copy link
Collaborator

@d-a-bunin d-a-bunin commented Feb 15, 2024

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 #221.

Closing issues

Closes #221.

@d-a-bunin d-a-bunin self-assigned this Feb 15, 2024
@@ -173,6 +176,7 @@ def _forecast(self, ts: TSDataset, return_components: bool) -> TSDataset:

return prediction_ts

# TODO: зачем это надо? Мб удалить?
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We should discuss this.

Copy link
Collaborator

Choose a reason for hiding this comment

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

It seems that everything okey here, what do you want to discuss?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I can't wee why do we need this thing. It seems to me it does nothing.

Copy link

github-actions bot commented Feb 15, 2024

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

@github-actions github-actions bot temporarily deployed to pull request February 15, 2024 08:25 Inactive
@github-actions github-actions bot temporarily deployed to pull request February 15, 2024 08:31 Inactive
Copy link

codecov bot commented Feb 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (unaligned-data@8c8d0ca). Click here to learn what that means.

Additional details and impacted files
@@                Coverage Diff                @@
##             unaligned-data     #241   +/-   ##
=================================================
  Coverage                  ?   90.00%           
=================================================
  Files                     ?      198           
  Lines                     ?    13330           
  Branches                  ?        0           
=================================================
  Hits                      ?    11997           
  Misses                    ?     1333           
  Partials                  ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +117 to +118
@pytest.fixture
def voting_ensemble_pipeline_int_timestamp(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why we use "int_timestamp" part in naming? It seems, that this pipeline can work with normal timestamps too.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, it can. But I created it exactly to work in integer timestamp. It replaces prophet with sarimax in voting_ensemble_pipeline.

Comment on lines +167 to +172
if ts.freq is None:
expected_index = pd.Index(np.arange(start_timestamp, end_timestamp + 1), name="timestamp")
else:
expected_index = pd.date_range(
start=start_timestamp, periods=num_points, freq=predict_ts.freq, name="timestamp"
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Perhaps there should be a separate function for the creation of the index? We use this logic in many places.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I'll add this logic in a separate PR.

@github-actions github-actions bot temporarily deployed to pull request February 16, 2024 12:55 Inactive
@d-a-bunin d-a-bunin merged commit 7c5aa0e into unaligned-data Feb 16, 2024
16 checks passed
@d-a-bunin d-a-bunin deleted the issue-221 branch February 16, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants