pytorch-forecasting icon indicating copy to clipboard operation
pytorch-forecasting copied to clipboard

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

Open pchalasani opened this issue 3 years ago • 4 comments

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.

pchalasani avatar Apr 19 '22 01:04 pchalasani

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

foundationequities avatar May 20 '22 20:05 foundationequities

I'm running into the same issue.

daniwxcode avatar May 28 '22 00:05 daniwxcode

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?

daniwxcode avatar May 28 '22 06:05 daniwxcode

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 avatar Jun 04 '22 15:06 pchalasani

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>

pchalasani avatar Oct 11 '22 07:10 pchalasani