ClusteringSummary (Spark 3.5.5 JavaDoc) (original) (raw)
Object
- org.apache.spark.ml.clustering.ClusteringSummary
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BisectingKMeansSummary, GaussianMixtureSummary, KMeansSummary
public class ClusteringSummary
extends Object
implements scala.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:
Serialized Form
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type Method and Description Dataset<Row> cluster() long[] clusterSizes() String featuresCol() int k() int numIter() String predictionCol() Dataset<Row> predictions() * ### Methods inherited from class Object `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`
Method Detail
* #### cluster public [Dataset](../../../../../org/apache/spark/sql/Dataset.html "class in org.apache.spark.sql")<[Row](../../../../../org/apache/spark/sql/Row.html "interface in org.apache.spark.sql")> cluster() * #### clusterSizes public long[] clusterSizes() * #### featuresCol public String featuresCol() * #### k public int k() * #### numIter public int numIter() * #### predictionCol public String predictionCol() * #### predictions public [Dataset](../../../../../org/apache/spark/sql/Dataset.html "class in org.apache.spark.sql")<[Row](../../../../../org/apache/spark/sql/Row.html "interface in org.apache.spark.sql")> predictions()