Normalize¶
- class torchtime.transforms.Normalize(mean: Tuple[float], std: Tuple[float], inplace: bool = False)[source]¶
Normalize a tensor time series with mean and standard deviation. Given mean:
(mean[1],...,mean[n])
and std:(std[1],..,std[n])
forn
channels, this transform will normalize each channel of the inputtorch.*Tensor
i.e.,output[channel] = (input[channel] - mean[channel]) / std[channel]
Note
This transform acts out of place, i.e., it does not mutate the input tensor.
- Parameters: