Class: BisectingKMeansModel

eclairjs/ml/clustering.BisectingKMeansModel

:: Experimental :: Model fitted by BisectingKMeans.

Constructor

new BisectingKMeansModel(parentModel)

Parameters:
Name Type Description
parentModel a model trained by BisectingKMeans.
Source:

Extends

Methods

(static) load(path) → {BisectingKMeansModel}

Parameters:
Name Type Description
path string
Source:
Returns:
Type
BisectingKMeansModel

(static) read() → {MLReader}

Source:
Returns:
Type
MLReader

clusterCenters() → {Array.<Vector>}

Source:
Returns:
Type
Array.<Vector>

computeCost(dataset) → {Promise.<number>}

Computes the sum of squared distances between the input points and their corresponding cluster centers.
Parameters:
Name Type Description
dataset module:eclairjs/sql.Dataset
Source:
Returns:
Type
Promise.<number>

copy(extra) → {BisectingKMeansModel}

Parameters:
Name Type Description
extra module:eclairjs/ml/param.ParamMap
Overrides:
Source:
Returns:
Type
BisectingKMeansModel

hasParent() → {Promise.<boolean>}

Indicates whether this Model has a corresponding parent.
Inherited From:
Source:
Returns:
Type
Promise.<boolean>

parent() → {module:eclairjs/ml.Estimator}

Inherited From:
Source:
Returns:
Type
module:eclairjs/ml.Estimator

setParent(parent) → {object}

Sets the parent of this model.
Parameters:
Name Type Description
parent module:eclairjs/ml.Estimator
Inherited From:
Source:
Returns:
Type
object

transform(dataset) → {module:eclairjs/sql.Dataset}

Parameters:
Name Type Description
dataset module:eclairjs/sql.Dataset
Overrides:
Source:
Returns:
Type
module:eclairjs/sql.Dataset

transformSchema(schema) → {module:eclairjs/sql/types.StructType}

Parameters:
Name Type Description
schema module:eclairjs/sql/types.StructType
Source:
Returns:
Type
module:eclairjs/sql/types.StructType

uid() → {Promise.<string>}

An immutable unique ID for the object and its derivatives.
Source:
Returns:
Type
Promise.<string>

write() → {MLWriter}

Source:
Returns:
Type
MLWriter