tumourkit.utils.classification.normalize
- tumourkit.utils.classification.normalize(X_train: ndarray, X_val: ndarray, X_test: ndarray) Tuple[ndarray, ndarray, ndarray]
Normalizes the input data using the mean and standard deviation of the training dataset.
- Parameters:
X_train (numpy.ndarray) – The input training data with shape (n_samples, n_features).
X_val (numpy.ndarray) – The input validation data with shape (n_samples, n_features).
X_test (numpy.ndarray) – The input test data with shape (n_samples, n_features).
- Returns:
A tuple containing three numpy.ndarrays: - The normalized X_train with shape (n_samples, n_features). - The normalized X_val with shape (n_samples, n_features). - The normalized X_test with shape (n_samples, n_features).
- Return type:
tuple(numpy.ndarray, numpy.ndarray, numpy.ndarray)