DataInt.normalize

DataInt.normalize(data_mat: ndarray | None = None, refit: bool = False) ndarray[source]

Normalizes the data matrix according to specification DataObject.normalization.

Parameters:
  • data_mat (np.ndarray, optional, default=None) – Data matrix to normalize. If None, the data matrix is loaded from the DataBlock instance.

  • refit (bool, optional, default=False) – If True, the normalization is refitted.

Returns:

np.ndarray – Normalized data matrix.