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 SummaryNested Classes
- 
Constructor SummaryConstructorsConstructorDescriptionPowerIterationClusteringModel(int k, RDD<PowerIterationClustering.Assignment> assignments) 
- 
Method SummaryModifier 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
- 
kpublic int k()
- 
assignments
- 
saveDescription 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.
 
-