NeuralTSNE.Utils.Preprocessing.Normalizers package
Submodules
NeuralTSNE.Utils.Preprocessing.Normalizers.normalizers module
- normalize_columns(data: Tensor) Tensor [source]View on GitHub
Normalize the columns of a 2D torch.Tensor to have values in the range [0, 1].
- Parameters:
data (torch.Tensor) – The input 2D tensor with columns to be normalized.
- Returns:
A new tensor with columns normalized to the range [0, 1].
- Return type:
torch.Tensor
Note
The normalization is done independently for each column, ensuring that the values in each column are scaled to the range [0, 1].