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:
scorefloat

The resulting Dunn score.

Notes

This function uses the absolute spatial correlation for distance.

References

Examples using pycrostates.metrics.dunn_score#

Evaluating clustering fits

Evaluating clustering fits