new BisectingKMeansModel(root)
Clustering model produced by BisectingKMeans.
The prediction is done level-by-level from the root node to a leaf node, and at each node among
its children the closest to the input point is selected.
Parameters:
Name | Type | Description |
---|---|---|
root |
the root node of the clustering tree |
Methods
clusterCenters()
Leaf cluster centers.
Returns:
{@module:eclairjs/mllib/linalg.Vector[]}
computeCost() → {float}
Computes the sum of squared distances between the input points and their corresponding cluster centers.
Parameters:
Name | Type | Description |
---|---|---|
{@module:eclairjs/mllib/linalg.Vector |
| module:eclairjs.RDD} data |
Returns:
- Type
- float
predict() → {float}
Predicts the index of the cluster that the input point belongs to.
Parameters:
Name | Type | Description |
---|---|---|
{@module:eclairjs/mllib/linalg.Vector |
| module:eclairjs.RDD} point |
Returns:
- Type
- float