0
$\begingroup$

Like in linear regression, there is model.intercept_ and model.coef_ but in kmeans i found kmeans.inertia_ , I dont know what is that.

$\endgroup$

1 Answer 1

1
$\begingroup$

K-means stores 4 model parameters namely cluster_centers_, labels_, inertia_, n_iter_. For details on what they store you can look at the official documentation. Also, Inertia, or the within-cluster sum of squares criterion, can be recognized as a measure of how internally coherent clusters are. You can see a full description here under the section: 2.3.2. K-means.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.