NNSOM.utils.get_cluster_array
- NNSOM.utils.get_cluster_array(feature, clust)[source]
Return an object array whose elements are per-cluster feature values.
- Parameters:
feature (array-like, shape (N,)) – Feature values for all data points.
clust (list of array-like) – A list of cluster index arrays sorted by distance to the winning neuron.
- Returns:
cluster_array – Each element is a 1-D array of feature values for that cluster. Empty clusters store an empty array.
- Return type:
np.ndarray of object, shape (numNeurons,)