NNSOM.utils.get_cluster_avg
- NNSOM.utils.get_cluster_avg(feature, clust)[source]
Compute the mean feature value for each cluster.
- 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_avg – Mean feature value per cluster. Zero for empty clusters.
- Return type:
np.ndarray, shape (numNeurons,)