Class: GaussianMixture

eclairjs/ml/clustering.GaussianMixture

:: Experimental :: Gaussian Mixture clustering. This class performs expectation maximization for multivariate Gaussian Mixture Models (GMMs). A GMM represents a composite distribution of independent Gaussian distributions with associated "mixing" weights specifying each's contribution to the composite. Given a set of sample points, this class will maximize the log-likelihood for a mixture of k Gaussians, iterating until the log-likelihood changes by less than convergenceTol, or until it has reached the max number of iterations. While this process is generally guaranteed to converge, it is not guaranteed to find a global optimum. Note: For high-dimensional data (with many features), this algorithm may perform poorly. This is due to high-dimensional data (a) making it difficult to cluster at all (based on statistical/theoretical arguments) and (b) numerical issues with Gaussian distributions.

Constructor

new GaussianMixture(uid)

Parameters:
Name Type Description
uid string
Source:

Extends

Methods

(static) load(path) → {GaussianMixture}

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

copy(extra) → {GaussianMixture}

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

extractParamMap() → {module:eclairjs/ml/param.ParamMap}

Inherited From:
Source:
Returns:
Type
module:eclairjs/ml/param.ParamMap

fit(dataset) → {GaussianMixtureModel}

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

setFeaturesCol(value) → {type}

Parameters:
Name Type Description
value string
Source:
Returns:
Type
type

setK(value) → {type}

Parameters:
Name Type Description
value number
Source:
Returns:
Type
type

setMaxIter(value) → {type}

Parameters:
Name Type Description
value number
Source:
Returns:
Type
type

setPredictionCol(value) → {type}

Parameters:
Name Type Description
value string
Source:
Returns:
Type
type

setProbabilityCol(value) → {type}

Parameters:
Name Type Description
value string
Source:
Returns:
Type
type

setSeed(value) → {type}

Parameters:
Name Type Description
value number
Source:
Returns:
Type
type

setTol(value) → {type}

Parameters:
Name Type Description
value number
Source:
Returns:
Type
type

transformSchema(schema) → {StructType}

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

uid() → {Promise.<string>}

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