Class PowerIterationClusteringModel
Object
org.apache.spark.mllib.clustering.PowerIterationClusteringModel
- All Implemented Interfaces:
Serializable
,Saveable
,scala.Serializable
Model produced by
PowerIterationClustering
.
param: k number of clusters
param: assignments an RDD of clustering PowerIterationClustering#Assignment
s
- See Also:
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionPowerIterationClusteringModel
(int k, RDD<PowerIterationClustering.Assignment> assignments) -
Method Summary
Modifier and TypeMethodDescriptionint
k()
load
(SparkContext sc, String path) void
save
(SparkContext sc, String path) Save this model to the given path.
-
Constructor Details
-
PowerIterationClusteringModel
-
-
Method Details
-
load
-
k
public int k() -
assignments
-
save
Description copied from interface:Saveable
Save this model to the given path.This saves: - human-readable (JSON) model metadata to path/metadata/ - Parquet formatted data to path/data/
The model may be loaded using
Loader.load
.
-