Class ClusteringMetrics

Object
org.apache.spark.ml.evaluation.ClusteringMetrics

public class ClusteringMetrics extends Object
Metrics for clustering, which expects two input columns: prediction and label.
  • Method Details

    • getDistanceMeasure

      public String getDistanceMeasure()
    • setDistanceMeasure

      public ClusteringMetrics setDistanceMeasure(String value)
    • silhouette

      public double silhouette()
      Returns the silhouette score
      Returns:
      (undocumented)