pycrostates.metrics.dunn_score#
- pycrostates.metrics.dunn_score(cluster)[source]#
Compute the Dunn index score.
This function computes the Dunn index score[1] from a fitted Clustering instance.
- Parameters:
- clusterCluster
Fitted clustering algorithm from which to compute score. For more details about current clustering implementations, check the Clustering section of the documentation.
- Returns:
- score
float The resulting Dunn score.
- score
Notes
This function uses the absolute spatial correlation for distance.
References