8000 &rigvedmanoj, benheid, geetu040 [ENH] interface to Chronos (zero-shot) forecaster by Z-Fran · Pull Request #7001 · sktime/sktime · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

&rigvedmanoj, benheid, geetu040 [ENH] interface to Chronos (zero-shot) forecaster #7001

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

Merged
merged 153 commits into from
Oct 10, 2024

Conversation

Z-Fran
Copy link
Contributor
@Z-Fran Z-Fran commented Aug 19, 2024

Adds an interface to the Chronos zero-shot forecaster, including a vendored version of the library.

Usage example:

from sktime.datasets import load_airline
from sktime.forecasting.chronos import ChronosForecaster
from sktime.split import temporal_train_test_split
from sktime.forecasting.base import ForecastingHorizon
y = load_airline()
y_train, y_test = temporal_train_test_split(y)
fh = ForecastingHorizon(y_test.index, is_relative=False)
forecaster = ChronosForecaster("amazon/chronos-t5-tiny")
forecaster.fit(y_train)
<
10000
span class="pl-s1">y_pred = forecaster.predict(fh)

@geetu040
Copy link
Contributor
geetu040 commented Oct 9, 2024

also @fkiraly do we still need this? I don't think so.

    def __init__():
        self.model_pipeline = None

    def _fit(self, y, X=None, fh=None):
        if self.model_pipeline is not None:
            return
        ...

@fkiraly
Copy link
Collaborator
fkiraly commented Oct 9, 2024

also @fkiraly do we still need this? I don't think so.

No, probably not, then.

Another point, if accelerate is a dep, is it present in any of the CI runs? Because tests for estimators whose deps are not there are not run.

@geetu040
Copy link
Contributor
geetu040 commented Oct 9, 2024

Another point, if accelerate is a dep, is it present in any of the CI runs? Because tests for estimators whose deps are not there are not run.

yes it is present in the CI runs, as it is a requirement for peft and transformers[torch], part of sktime[dl] set

@geetu040
Copy link
Contributor

The failures are due to the segmentation fault, not relevant to this PR

@geetu040 geetu040 requested a review from fkiraly October 10, 2024 04:55
@fkiraly fkiraly changed the title [ENH] interface to Chronos (zero-shot) forecaster &geetu040 [ENH] interface to Chronos (zero-shot) forecaster Oct 10, 2024
fkiraly
fkiraly previously approved these changes Oct 10, 2024
Copy link
Collaborator
@fkiraly fkiraly left a comment

Choose a reason for hiding this comment

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

Thanks for completing - I have added @geetu040 and @RigvedManoj (for the initial PR #6205) as author and contributor for this PR, and @Z-Fran and @RigvedManoj to the contributors register.

@fkiraly fkiraly changed the title &geetu040 [ENH] interface to Chronos (zero-shot) forecaster &rigvedmanoj, geetu040 [ENH] interface to Chronos (zero-shot) forecaster Oct 10, 2024
@fkiraly fkiraly changed the title &rigvedmanoj, geetu040 [ENH] interface to Chronos (zero-shot) forecaster &rigvedmanoj, benheid, geetu040 [ENH] interface to Chronos (zero-shot) forecaster Oct 10, 2024
@fkiraly fkiraly merged commit bd6a000 into sktime:main Oct 10, 2024
54 of 56 checks passed
@fkiraly fkiraly mentioned this pull request Oct 18, 2024
6 tasks
benHeid pushed a commit that referenced this pull request Feb 15, 2025
…) forecaster (#7001)

Adds an interface to the Chronos zero-shot forecaster, including a vendored version of the library.

Usage example:
```python
from sktime.datasets import load_airline
from sktime.forecasting.chronos import ChronosForecaster
from sktime.split import temporal_train_test_split
from sktime.forecasting.base import ForecastingHorizon
y = load_airline()
y_train, y_test = temporal_train_test_split(y)
fh = ForecastingHorizon(y_test.index, is_relative=False)
forecaster = ChronosForecaster("amazon/chronos-t5-tiny")
forecaster.fit(y_train)
y_pred = forecaster.predict(fh)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Adding new functionality interfacing algorithms Interfacing existing algorithms/estimators from third party packages module:forecasting forecasting module: forecasting, incl probabilistic and hierarchical forecasting
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

0