NNSOM.utils.get_cluster_data
- NNSOM.utils.get_cluster_data(data, clust)[source]
For each cluster, extract the corresponding data points.
- Parameters:
data (np.ndarray) – The dataset from which to extract cluster data.
clust (list of array-like) – A list where each element holds the indices of data points belonging to that cluster.
- Returns:
cluster_data_list – A list where each element is an array of data points for one cluster. Empty clusters produce an empty array.
- Return type:
list of np.ndarray