Open vfdev-5 opened 3 years ago
opps i forgot to fix the readme... yes just use the input_size=19
@kashif thanks ! However, I do not get why input_size
is not a hyperparameter and is constraint by something else ?
good question @vfdev-5 so the input_size
is the size of the features which are then passed to the RNN for example. The feature size depends on the freq of the time series data (via lag features and time features), as well as on the possible static or time-dependent covariates of a dataset and finally on the user-defined possible embedding sizes from any possible categorical covariates... thus I found it easiest to just use the error message to get the right input size... another solution would be to get it from the final batches... but I hope that answers your question?
with respect to the RNN its hidden size is a hyperparameter and you can choose it as you like but there is some default value (which I forget)...
Thanks for a detailed answer @kashif !
Right, that's true that input_size
for LSTM behind DeepAREstimator
means the number of features: (batch_size, sequence_length, input_size), https://pytorch.org/docs/stable/generated/torch.nn.LSTM.html
The feature size depends on the freq of the time series data (via lag features and time features), as well as on the possible static or time-dependent covariates of a dataset and finally on the user-defined possible embedding sizes from any possible categorical covariates... thus I found it easiest to just use the error message to get the right input size... another solution would be to get it from the final batches... but I hope that answers your question?
It would be nice to see somewhere a clear description on how these parameters are coupled together.
Hi, I'm executing the following code from the README and
and got the following error:
Version:
Any suggestions ? Thanks