NeuralTSNE.Utils.Preprocessing package
Subpackages
Submodules
NeuralTSNE.Utils.Preprocessing.preprocessing module
- prepare_data(variance_threshold: float, data: ndarray) Tensor [source]View on GitHub
Prepare data for further analysis by filtering based on variance, saving means and variances, and normalizing columns.
- Parameters:
variance_threshold (float) – Threshold for variance-based feature selection.
data (np.ndarray) – Input data array.
- Returns:
Processed and normalized data tensor.
- Return type:
torch.Tensor
Note
The function filters the input data based on the provided variance threshold, saves means and variances, and then normalizes the columns of the data before converting it into a torch.Tensor.