turicreate.kmeans.KmeansModel — Turi Create API 6.4.1 documentation (original) (raw)
class turicreate.kmeans.
KmeansModel
(model)¶
K-means clustering model. A k-means model object contains the results of running kmeans clustering on a dataset. Queryable fields include a cluster id for each vertex, as well as the centers of the clusters.
This model cannot be constructed directly. Instead, useturicreate.kmeans.create() to create an instance of this model. A detailed list of parameter options and code samples are available in the documentation for the create function.
Methods
KmeansModel.predict(dataset[, output_type, …]) | Return predicted cluster label for instances in the new ‘dataset’. |
---|---|
KmeansModel.save(location) | Save the model. |
KmeansModel.summary([output]) | Print a summary of the model. |