public class PowerIterationClusteringModel extends Object implements Saveable, scala.Serializable
PowerIterationClustering
.
param: k number of clusters
param: assignments an RDD of clustering PowerIterationClustering#Assignment
s
Modifier and Type | Class and Description |
---|---|
static class |
PowerIterationClusteringModel.SaveLoadV1_0$ |
Constructor and Description |
---|
PowerIterationClusteringModel(int k,
RDD<PowerIterationClustering.Assignment> assignments) |
Modifier and Type | Method and Description |
---|---|
RDD<PowerIterationClustering.Assignment> |
assignments() |
int |
k() |
static PowerIterationClusteringModel |
load(SparkContext sc,
String path) |
void |
save(SparkContext sc,
String path)
Save this model to the given path.
|
public PowerIterationClusteringModel(int k, RDD<PowerIterationClustering.Assignment> assignments)
public static PowerIterationClusteringModel load(SparkContext sc, String path)
public int k()
public RDD<PowerIterationClustering.Assignment> assignments()
public void save(SparkContext sc, String path)
Saveable
This saves: - human-readable (JSON) model metadata to path/metadata/ - Parquet formatted data to path/data/
The model may be loaded using Loader.load
.