Class ClusteringSummary

Object
org.apache.spark.ml.clustering.ClusteringSummary
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BisectingKMeansSummary, GaussianMixtureSummary, KMeansSummary

public class ClusteringSummary extends Object implements Serializable
Summary of clustering algorithms.

param: predictions DataFrame produced by model.transform(). param: predictionCol Name for column of predicted clusters in predictions. param: featuresCol Name for column of features in predictions. param: k Number of clusters. param: numIter Number of iterations.

See Also:
  • Method Details

    • cluster

      public Dataset<Row> cluster()
    • clusterSizes

      public long[] clusterSizes()
    • featuresCol

      public String featuresCol()
    • k

      public int k()
    • numIter

      public int numIter()
    • predictionCol

      public String predictionCol()
    • predictions

      public Dataset<Row> predictions()