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

Cannot predict the feature timestamps #49

Open
gkoays opened this issue Apr 17, 2024 · 1 comment
Open

Cannot predict the feature timestamps #49

gkoays opened this issue Apr 17, 2024 · 1 comment

Comments

@gkoays
Copy link

gkoays commented Apr 17, 2024

Hi, thanks for the model and instructions. I could not get the idea of predicting the last part of the data. I tried zero-shot learning with my own data. Let's say I have 1 week of hourly data. When I want to use the "get_lag_llama_predictions" function, the "forecasts" object has the same timestamp as the last part of the given data. But I want to predict the future timestamps. I want to give 1 week of data to model and predict the next 2 days. How can I achieve that? Thanks.

@ashok-arjun
Copy link
Contributor

ashok-arjun commented Apr 17, 2024

Hi.

Lag-Llama can predict for any future timepoints. It's the structure of the code at the moment that needs the timesteps at the end of the data object (with any dummy value), since the code right now automatically does forecasting for the last "prediction_length" timesteps in the dataset. This is also noted in Colab Demo 1. I agree that this can be improved.

The prediction function provided in this notebook performs a prediction autoregressively for the last prediction_length steps in the dataset passed.
For the time being, if you would like to perform prediction, please include in the CSV/dataframe the timestamps you want to perform prediction for (with a dummy value), and set the prediction length to the required horizon.

Can you try that and let me know if it works?

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