new PowerIterationClusteringModel(k, assignments)
Model produced by PowerIterationClustering.
Parameters:
Name | Type | Description |
---|---|---|
k |
number | number of clusters |
assignments |
module:eclairjs.RDD | an RDD of clustering [[PowerIterationClustering#Assignment]]s |
Methods
(static) load(sc, path) → {module:eclairjs/mllib/clustering.PowerIterationClusteringModel}
Parameters:
Name | Type | Description |
---|---|---|
sc |
module:eclairjs.SparkContext | |
path |
string |
Returns:
assignments() → {module:eclairjs.RDD}
Returns:
- Type
- module:eclairjs.RDD
k() → {integer}
Returns:
- Type
- integer
save(sc, path)
Parameters:
Name | Type | Description |
---|---|---|
sc |
module:eclairjs.SparkContext | |
path |
string |