org.apache.spark.mllib.clustering
Leaf cluster centers.
Leaf cluster centers.
Java-friendly version of computeCost()
.
Java-friendly version of computeCost()
.
Computes the sum of squared distances between the input points and their corresponding cluster centers.
Computes the sum of squared distances between the input points and their corresponding cluster centers.
Computes the squared distance between the input point and the cluster center it belongs to.
Computes the squared distance between the input point and the cluster center it belongs to.
Current version of model save/load format.
Current version of model save/load format.
Number of leaf clusters.
Java-friendly version of predict()
.
Java-friendly version of predict()
.
Predicts the indices of the clusters that the input points belong to.
Predicts the indices of the clusters that the input points belong to.
Predicts the index of the cluster that the input point belongs to.
Predicts the index of the cluster that the input point belongs to.
Save this model to the given path.
Save this model to the given path.
This saves:
The model may be loaded using Loader.load
.
Spark context used to save model data.
Path specifying the directory in which to save this model. If the directory already exists, this method throws an exception.
Clustering model produced by BisectingKMeans. The prediction is done level-by-level from the root node to a leaf node, and at each node among its children the closest to the input point is selected.