scib_metrics.utils.silhouette_samples#
- scib_metrics.utils.silhouette_samples(X, labels, chunk_size=256)[source]#
Compute the Silhouette Coefficient for each observation.
Implements
sklearn.metrics.silhouette_samples()
.- Parameters:
- Return type:
- Returns:
silhouette scores array of shape (n_cells,)