Package org.apache.spark.ml.clustering
Class ClusteringSummary
Object
org.apache.spark.ml.clustering.ClusteringSummary
- All Implemented Interfaces:
Serializable
,scala.Serializable
- Direct Known Subclasses:
BisectingKMeansSummary
,GaussianMixtureSummary
,KMeansSummary
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
-
clusterSizes
public long[] clusterSizes() -
featuresCol
-
k
public int k() -
numIter
public int numIter() -
predictionCol
-
predictions
-