pytorch_forecasting.models.deepar.sub_modules.
TimeSeriesRNN
Bases: abc.ABC, torch.nn.modules.rnn.RNNBase
abc.ABC
torch.nn.modules.rnn.RNNBase
Base class for implementations of RNN modules compatible with DeepAR.
Methods
handle_no_encoding(out, 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.