deepof.utils.scale_table
- deepof.utils.scale_table(coordinates: deepof_coordinates, feature_array: ndarray, scale: str, global_scaler: Any | None = None)
Scales features in a table controlling for both individual body size and interanimal variability.
- Parameters:
coordinates (coordinates) – a deepof coordinates object.
feature_array (np.ndarray) – array to scale. Should be shape (instances x features).
scale (str) – Data scaling method. Must be one of ‘standard’, ‘robust’ (default; recommended) and ‘minmax’.
global_scaler (Any) – global scaler, fit in the whole dataset.