pytorch_forecasting.models.deepar.sub_modules.
TimeSeriesLSTM
Bases: pytorch_forecasting.models.deepar.sub_modules.TimeSeriesRNN, torch.nn.modules.rnn.LSTM
pytorch_forecasting.models.deepar.sub_modules.TimeSeriesRNN
torch.nn.modules.rnn.LSTM
Implementation of LSTM module compatible with DeepAR.
Methods
handle_no_encoding(hidden_state, no_encoding)
handle_no_encoding
Mask the hidden_state where there is no encoding.
init_hidden_state(x, hidden_size)
init_hidden_state
Initialise a hidden_state
repeat_interleave(hidden_state, n_samples)
repeat_interleave
Duplicate the hidden_state n_samples times.