Replies: 7 comments
-
see stats here |
Beta Was this translation helpful? Give feedback.
-
Thanks for the answer. It seems like obj[-1] should be corresponding to the SSE (or inertia). Then do you have an idea about why it is not decreasing with higher number of clusters? I've seen it reported by many others. @mdouze |
Beta Was this translation helpful? Give feedback.
-
@mdouze Could you tell me if this is an expected behavior? |
Beta Was this translation helpful? Give feedback.
-
@mdouze If I understand correctly, the
|
Beta Was this translation helpful? Give feedback.
-
Running into the same issue here. obj[-1] is increasing as the number of clusters increase. What am I getting wrong? Is there a way to get inertia from the kmeans object? |
Beta Was this translation helpful? Give feedback.
-
This solved my issue. It was related to min and max points per centroid. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to see the inertia values of my clustering (sum of squared errors). I've seen several people using:
faiss.KMeans.obj[-1]
as a measure of inertia value for KMeans.However this value is always increasing for me with highher number of clusters, which is unexpected (should be decreasing).
This '.obj' attribute is defined as 'iteration_stats' in _swigfaiss_avx2 file as following:
iteration_stats = property(_swigfaiss_avx2.ProgressiveDimClustering_iteration_stats_get,_swigfaiss_avx2.ProgressiveDimClustering_iteration_stats_set, doc=r""" stats at every iteration of clustering""")
What does 'stats at every iteration of clustering' stand for here? Is it correct to use the last element of this array as the inertia value or should it be accessed by another variable?
Beta Was this translation helpful? Give feedback.
All reactions