You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Relative tolerance with regards to inertia to declare convergence.
However the tolerance was never measured against the difference in inertia, but as against the Frobenius norm of the difference in the cluster centers.
The parameter
tol
is referred in the documentation as tolerance with respect to inertia:scikit-learn/sklearn/cluster/_kmeans.py
Line 685 in b194674
However the tolerance was never measured against the difference in inertia, but as against the Frobenius norm of the difference in the cluster centers.
scikit-learn/sklearn/cluster/_kmeans.py
Lines 442 to 443 in b194674
Either the documentation is wrong here or the check for convergence is wrong.
The text was updated successfully, but these errors were encountered: