archetypes.datasets.sort_by_archetype_similarity#

archetypes.datasets.sort_by_archetype_similarity(data, alphas, archetypes)#

Sort a dataset using the archetypal spaces previously computed.

Parameters:
data: array-like

The dataset to sort.

alphas: list of array-like

The dataset in the archetypal spaces.

archetypes: list of array-like

The archetypes.

Returns
——-
data: array-like

The sorted dataset.

info: dict

The information about the sorting.