Pytorch Tensor scaling - PyTorch Forums
discuss.pytorch.org › t › pytorch-tensor-scalingFeb 28, 2019 · Pytorch Tensor scaling. Is there a pytorch command that scales tensors like sklearn (example below)? X = data [:,:num_inputs] x_scaler = preprocessing.StandardScaler () X_scaled = x_scaler.fit_transform (X) You can easily clone the sklearn behavior using this small script: x = torch.randn (10, 5) * 10 scaler = StandardScaler () arr_norm ...