Skip to contents

The Pearson correlation between pairwise distances and a binary indicator of whether two observations belong to different clusters. All within-cluster distances are paired with indicator 0, and all between-cluster distances with indicator 1. Values close to 1 indicate that between-cluster distances tend to be larger than within-cluster distances, suggesting well-separated clusters.

Details

If the task contains factor or ordered features, Gower distances (cluster::daisy()) are used instead of Euclidean distances.

Dictionary

This mlr3::Measure can be instantiated via the dictionary mlr3::mlr_measures or with the associated sugar function mlr3::msr():

mlr_measures$get("clust.pearsongamma")
msr("clust.pearsongamma")

Meta Information

  • Task type: “clust”

  • Range: \([-1, 1]\)

  • Minimize: FALSE

  • Average: macro

  • Required Prediction: “partition”

  • Required Packages: mlr3, mlr3cluster, cluster