DeepAR is an autoregressive recurrent neural network that forecasts probability distributions for the next forecast horizon values given the preceding context length values. It also uses lagged values and time features, automatically computed based on the selected time frequency. This implementation relies on Torch.