jdb78 / pytorch-forecasting

Time series forecasting with PyTorch
https://pytorch-forecasting.readthedocs.io/
MIT License
3.8k stars 605 forks source link

model.predict() should not require presence of "target" #960

Open pchalasani opened 2 years ago

pchalasani commented 2 years ago

When I try to do model.predict(df) and df does not contain the target, I get an error. In predict mode, it shouldn't care if the "target" is present or not, so it's unclear if I'm doing something wrong, or if it's expected behavior.

foundationequities commented 2 years ago

Can you post your training = TimeSeriesDataSet( ) statement. Where did you include "target"?

daniwxcode commented 2 years ago

I'm running into the same issue.

daniwxcode commented 2 years ago

When I try to do model.predict(df) and df does not contain the target, I get an error. In predict mode, it shouldn't care if the "target" is present or not, so it's unclear if I'm doing something wrong, or if it's expected behavior.

Have you find a solution?

pchalasani commented 2 years ago

When I try to do model.predict(df) and df does not contain the target, I get an error. In predict mode, it shouldn't care if the "target" is present or not, so it's unclear if I'm doing something wrong, or if it's expected behavior.

Have you find a solution?

I have switched to using the DARTS package which is very similar and seems more intuitive, and more responsive devs. https://github.com/unit8co/darts

pchalasani commented 1 year ago

Yes of course there is a work around where you insert a dummy target.

But I actually started using the DARTS package which seems more intuitive and the devs are more responsive.

On Sat, May 28 2022 at 12:54 AM, daniwxcode < @.*** > wrote:

When I try to do model.predict(df) and df does not contain the target, I get an error. In predict mode, it shouldn't care if the "target" is present or not, so it's unclear if I'm doing something wrong, or if it's expected behavior.

Have you find a solution?

— Reply to this email directly, view it on GitHub ( https://github.com/jdb78/pytorch-forecasting/issues/960#issuecomment-1140189224 ) , or unsubscribe ( https://github.com/notifications/unsubscribe-auth/AAEHK27P2CSETWVN6OINM63VMG7LNANCNFSM5TXKLDUQ ). You are receiving this because you authored the thread. Message ID: <jdb78/pytorch-forecasting/issues/960/1140189224 @ github. com>