Class: BisectingKMeansModel

eclairjs/mllib/clustering. BisectingKMeansModel

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
Source:

Methods

clusterCenters()

Leaf cluster centers.
Source:
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
Source:
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
Source:
Returns:
Type
float