pytorch_forecasting.utils.
autocorrelation
Computes the autocorrelation of samples at dimension dim.
dim
Reference: https://en.wikipedia.org/wiki/Autocorrelation#Efficient_computation
Implementation copied form pyro.
input (torch.Tensor) – the input tensor.
dim (int) – the dimension to calculate autocorrelation.
autocorrelation of input.
input