You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and the, when I try to do 'nf.fit(df=Y_train_df), the error occurred.
RuntimeError: input.size(-1) must be equal to input_size. Expected 5, got 2
This is mainly because it accepts 2 features instead of 5 features when I print encoder_input encoder_input: encoder_input:encoder_input:torch.Size([32, 1440, 2])
I do not know why the size became 2 when I set n_series = 5. This is really frustrating tbh.
What happened + What you expected to happen
I am trying to change(?) LSTM model into multivariate version based on multivariate correlation + autocorrelation in my local enviroment.
so, I tried to change like this:
use BaseMultivariate instead of recurrent thing
class LSTM(BaseMultivariate):
set class attributes
init
input_encoder
and the, when I try to do '
nf.fit(df=Y_train_df)
, the error occurred.RuntimeError: input.size(-1) must be equal to input_size. Expected 5, got 2
This is mainly because it accepts 2 features instead of 5 features when I print encoder_input
encoder_input: encoder_input:encoder_input:torch.Size([32, 1440, 2])
I do not know why the size became 2 when I set
n_series = 5
. This is really frustrating tbh.In addition,
These also cause problem with
TypeError: Trainer.__init__() got an unexpected keyword argument.
so I had to remove those two when I run the code.Those errors seems very common when I try to do it with different model, ModernTCN, not to mention the guide document is very limited.
Versions / Dependencies
python 3.10.14
reinstalled neuralforecast today.
Reproduction script
This was already described above
Issue Severity
High: It blocks me from completing my task.
The text was updated successfully, but these errors were encountered: