archetypes.datasets.sort_by_labels#

archetypes.datasets.sort_by_labels(data, labels)#

Sort a dataset using the labels.

Parameters:
data: array-like

The dataset to sort.

labels: list of array-like

The labels to sort the dataset.

Returns:
data: array-like

The sorted dataset.

info: dict

The information about the sorting.