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

Inference with long sequence dataset #99

Open
chohs1221 opened this issue Aug 30, 2024 · 5 comments
Open

Inference with long sequence dataset #99

chohs1221 opened this issue Aug 30, 2024 · 5 comments

Comments

@chohs1221
Copy link

Hi, thanks for the project. I am really interested in it.

But while finetuning with my own dataset, I've got confused.

Here's what I understood:

  1. The model's input is a window of size {context_length}
  2. During training step, the model forecasts the sequence length of {prediction_length} at once.
  3. When inference(prediction), the model forecasts one at a time autoregressively for length of {prediction_length}
    Am I understanding right?

And how can I forecast long sequences?
For example,
I have fintuned the model and have 100k sequences of time series dataset for test.
I want to forecast(predict) all of them except the first {context_size} of test dataset.
Should I just get {prediction_length} larger? or am I understanding something wrong?

Thank you, hope for your reply.

@ashok-arjun
Copy link
Contributor

ashok-arjun commented Aug 30, 2024

When finetuning, you can use the specific prediction length you want to finetune for. You can set it in the run script as --prediction_length.

At inference, you can always set a different (larger or smaller) prediction length too.

@chohs1221
Copy link
Author

Thanks for the reply.
Do you mean it is possible to autoregressively predict 100k of sequences at once by setting prediction_length 100k?

@ashok-arjun
Copy link
Contributor

That's the only way supported now.

@chohs1221
Copy link
Author

Sorry, but I beg you for few more questions please.

  1. I tried to predict all 100k of sequences but when I set prediction_length up to 100k, list(forecast_id) didn't work for more than 3 hours. Is there a problem with my process?
  2. Or if 1. is impossible, is there a way to get results(predicted forecast_id) without making PandasDataset to List?

Thanks.

@ashok-arjun
Copy link
Contributor

  1. 100k is possible but too long. I suggest starting very small and incrementally increasing prediction length
  2. Nope, unfortunately

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