deepof.utils.scale_animal
- deepof.utils.scale_animal(feature_array: ndarray, scale: str)
Scales features in the provided array.
- Parameters:
feature_array (np.ndarray) – array to scale. Should be shape (instances x features).
graph (nx.Graph) – connectivity graph for the current animals.
scale (str) – Data scaling method. Must be one of ‘standard’, ‘robust’ (default; recommended) and ‘minmax’.
- Returns:
Scaled version of the input array, with features normalized by modality. List of scalers per modality.