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

zeroshot_trainer.predict and TimeSeriesForecastingPipeline #172

Open
NING-CSU opened this issue Oct 29, 2024 · 1 comment
Open

zeroshot_trainer.predict and TimeSeriesForecastingPipeline #172

NING-CSU opened this issue Oct 29, 2024 · 1 comment

Comments

@NING-CSU
Copy link

NING-CSU commented Oct 29, 2024

I have some concerns regarding inference in a zero-shot scenario using TTM.

In the ttm_getting_started, predictions can be obtained using zeroshot_trainer.predict, but when I load a custom dataset, the output data is normalized by default. How can I obtain the denormalized data? Is there a scaler available? Additionally, I noticed that predictions.label_ids is empty; how can I get the label data (ground truth)?

Furthermore, it seems that inference can also be performed using TimeSeriesForecastingPipeline. What are the differences between TimeSeriesForecastingPipeline and zeroshot_trainer.predict? When using TimeSeriesForecastingPipeline for inference, does the input data need to be normalized?

These questions are confusing to me. I look forward to your response.

@NING-CSU NING-CSU changed the title zeroshot_trainer.evaluate and TimeSeriesForecastingPipeline zeroshot_trainer.predict and TimeSeriesForecastingPipeline Oct 29, 2024
@wgifford
Copy link
Collaborator

Hi @NING-CSU trainer.predict works with torch datasets and outputs tensors. For higher-level functionality, we created the TimeSeriesForecastingPipeline. The pipeline takes dataframes as input and outputs dataframes. If initialized with a preprocessor, it can also perform the inverse normalization. An example can be found here: https://github.com/ibm-granite-community/granite-timeseries-cookbook/blob/main/recipes/Time_Series/Preprocessor_Use_and_Performance_Evaluation.ipynb

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

No branches or pull requests

2 participants