Open dhananjay-srivastava opened 1 year ago
silhoutte score calculation does nt work, there is a bug in the code, it should be labels not label
epi.tl.silhouette(adata,'louvain')
TypeError Traceback (most recent call last) in ----> 1 epi.tl.silhouette(adata,'louvain')
/usr/local/lib/python3.9/dist-packages/episcanpy/tools/_silhouette.py in silhouette(adata_name, cluster_annot, value, metric, key_added, copy) 46 47 ## also, return sample_silhouette_values as adata.obs['silhouette_samples'] ---> 48 silhouette_avg = silhouette_score(X=X, label=cluster_labels, metric=metric) 49 sample_silhouette_values = silhouette_samples(X=X, label=cluster_labels, metric=metric) 50
TypeError: silhouette_score() missing 1 required positional argument: 'labels'
It should be labels not label in silhouette_score and silhouette_samples
silhoutte score calculation does nt work, there is a bug in the code, it should be labels not label
epi.tl.silhouette(adata,'louvain')
TypeError Traceback (most recent call last) in
----> 1 epi.tl.silhouette(adata,'louvain')
/usr/local/lib/python3.9/dist-packages/episcanpy/tools/_silhouette.py in silhouette(adata_name, cluster_annot, value, metric, key_added, copy) 46 47 ## also, return sample_silhouette_values as adata.obs['silhouette_samples'] ---> 48 silhouette_avg = silhouette_score(X=X, label=cluster_labels, metric=metric) 49 sample_silhouette_values = silhouette_samples(X=X, label=cluster_labels, metric=metric) 50
TypeError: silhouette_score() missing 1 required positional argument: 'labels'
It should be labels not label in silhouette_score and silhouette_samples