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
$\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.

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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