compute_centroids¶
- PLSCAN.compute_centroids(labels=None)¶
Return the probability-weighted centroid of each cluster.
For each cluster the centroid is the membership-probability-weighted mean of the feature vectors of all cluster members (noise points with label
-1are excluded). The result has shape(n_clusters, n_features).Only available for feature-vector input (
metric != "precomputed"). RaisesValueErrorfor precomputed inputs andNotFittedErrorbefore fitting.