Constructor
new KMeansModel()
- Source:
Extends
Methods
Parameters:
Name |
Type |
Description |
path |
string
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/mllib/clustering.KMeansModel
- Source:
Returns:
-
Type
-
module:eclairjs/ml/util.MLReader
- Source:
Returns:
-
Type
-
Array.<module:eclairjs/mllib/linalg.Vector>
computeCost(dataset) → {number}
Return the K-means cost (sum of squared distances of points to their nearest center) for this
model on the given data.
Parameters:
- Source:
Returns:
-
Type
-
number
Parameters:
- Overrides:
- Source:
Returns:
-
Type
-
module:eclairjs/mllib/clustering.KMeansModel
hasParent() → {boolean}
- Inherited From:
- Source:
Returns:
-
Type
-
boolean
hasSummary() → {boolean}
Return true if there exists summary of model.
- Source:
Returns:
-
Type
-
boolean
- Inherited From:
- Source:
Returns:
-
Type
-
module:eclairjs/ml.Estimator
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/mllib/clustering.KMeansModel
setParent(parent) → {object}
Sets the parent of this model.
Parameters:
- Inherited From:
- Source:
Returns:
-
Type
-
object
Parameters:
Name |
Type |
Description |
value |
string
|
|
- Source:
Returns:
-
Type
-
module:eclairjs/mllib/clustering.KMeansModel
summary() → {module:eclairjs/ml/clustering.KMeansSummary}
Gets summary of model on training set. An exception is
thrown if `trainingSummary == None`.
- Source:
Returns:
-
Type
-
module:eclairjs/ml/clustering.KMeansSummary
Parameters:
- Overrides:
- Source:
Returns:
-
Type
-
module:eclairjs/sql.Dataset
Parameters:
- Overrides:
- Source:
Returns:
-
Type
-
module:eclairjs/sql/types.StructType
uid() → {string}
An immutable unique ID for the object and its derivatives.
- Source:
Returns:
-
Type
-
string
- Source:
Returns:
-
Type
-
module:eclairjs/ml/util.MLWriter