Class PowerIterationClusteringModel
Object
org.apache.spark.mllib.clustering.PowerIterationClusteringModel
- All Implemented Interfaces:
Serializable,Saveable
Model produced by
PowerIterationClustering.
param: k number of clusters
param: assignments an RDD of clustering PowerIterationClustering#Assignments
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPowerIterationClusteringModel(int k, RDD<PowerIterationClustering.Assignment> assignments) -
Method Summary
Modifier and TypeMethodDescriptionintk()load(SparkContext sc, String path) voidsave(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:SaveableSave 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.
-