compute_centroids_from_features

fast_plscan.compute_centroids_from_features(data, probabilities, labels)

Compute probability-weighted centroids from feature vectors.

Assumes inputs are already validated.

Parameters:
Return type:

ndarray[tuple[int, int], dtype[single]]

Returns:

centroids – Float32 array of shape (n_clusters, n_features).