public class ClusteringSummary
extends Object
implements scala.Serializable
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.
Modifier and Type | Method and Description |
---|---|
Dataset<Row> |
cluster()
Cluster centers of the transformed data.
|
long[] |
clusterSizes()
Size of (number of data points in) each cluster.
|
String |
featuresCol() |
int |
k() |
String |
predictionCol() |
Dataset<Row> |
predictions() |
public String predictionCol()
public String featuresCol()
public int k()
public Dataset<Row> cluster()
public long[] clusterSizes()