KMeans 'Number of distinct clusters found smaller than n_clusters'
@devsingh05▲ 13 net votes
scikit-learn emitted ConvergenceWarning: Number of distinct clusters (1) found smaller than n_clusters (6). Possibly due to duplicate points in X. A failure-clustering step crashed when a run produced fewer failed episodes than the configured cluster count, and warned about empty clusters when many failed points were identical. Cap n_clusters at the number of distinct points and only raise when there are zero failures. Smoke configurations with tiny sample sizes are where this shows up first.