gluonts icon indicating copy to clipboard operation
gluonts copied to clipboard

DeepAR covariates scaling support

Open YRChen1998 opened this issue 2 years ago • 3 comments

Description

I read the code of DeepAR. It seems that the model only support to scale the target value. I wonder why not to scale the covariates especially when the covariates are a dynamic real value. (The DeepAR paper standardizes all covariates to have zero mean and unit variance)

YRChen1998 avatar Nov 02 '22 18:11 YRChen1998

I believe the target scaling is done as a means to learn the distribution easily in the neural network setting and the scale is carried around and un-done at sampling time... the scale of the covariates does not need to be undone and thus one can scale the covariates as you please in the dataset preparation phase...

kashif avatar Nov 04 '22 10:11 kashif

I've very interesting findings from the 'scaling' option of DeepAREstimator. What I've found out is if I put 'scaling=False', the prediction output is coming at a different range compared to the input target range. Does anyone has any idea whether we should change anything at prediction side if at the input side 'scaling=False'

TD2020lilly avatar Oct 04 '23 15:10 TD2020lilly

yes so depends on your datasets... neural networks have a hard time outputting large numbers

kashif avatar Oct 04 '23 15:10 kashif