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
Tracks rank 39 in benchmarks/OPTIMIZATION_ROADMAP.md: BisectingKMeans.transform. Complete the roadmap optimization hypothesis with sklearn-parity-gated benchmark evidence, then update roadmap evidence/disposition before closing.
There is no bisecting_kmeans_transform, and no bisecting_kmeans_predict either. A repository-wide search finds no caller of any such function, and the Python package under python/ has no BisectingKMeans binding. benchmarks/parity_contract.json has no BisectingKMeans row.
Why the roadmap row exists anyway
Rank 39 comes from benchmarks/sklearn_execution_inventory.json, which enumerates sklearn's own public methods. Every row from rank 21 down carries the same tied score of 46.5, a blank observed-speedup column and one templated hypothesis string. The row records that sklearn has a BisectingKMeans.transform. It is not evidence that flow-scikit has one.
Writing bisecting_kmeans_transform would be new API surface rather than an optimization, and there is no before number to measure against. If the method is wanted, it belongs in a feature issue. Note that when it is written it should reuse blas_matmat_nt and the squared-euclidean expansion added for kmeans_transform in #332 rather than growing a second copy of that kernel: a BisectingKMeans model stores its centroids in the same ptr<ptr<f32>> layout KMeans does, so the same packing and sgemm applies unchanged.
Related work in the same file
The other four issues in this batch were handled as follows:
Activity
godofecht commentedon Aug 18, 2026
Closing as a no-op: there is nothing to optimize, because
BisectingKMeans.transformhas no Flow implementation.What I checked
lib/scikit/cluster.flowdefines exactly two BisectingKMeans entry points:There is no
bisecting_kmeans_transform, and nobisecting_kmeans_predicteither. A repository-wide search finds no caller of any such function, and the Python package underpython/has no BisectingKMeans binding.benchmarks/parity_contract.jsonhas no BisectingKMeans row.Why the roadmap row exists anyway
Rank 39 comes from
benchmarks/sklearn_execution_inventory.json, which enumerates sklearn's own public methods. Every row from rank 21 down carries the same tied score of 46.5, a blank observed-speedup column and one templated hypothesis string. The row records that sklearn has aBisectingKMeans.transform. It is not evidence that flow-scikit has one.Writing
bisecting_kmeans_transformwould be new API surface rather than an optimization, and there is no before number to measure against. If the method is wanted, it belongs in a feature issue. Note that when it is written it should reuseblas_matmat_ntand the squared-euclidean expansion added forkmeans_transformin #332 rather than growing a second copy of that kernel: a BisectingKMeans model stores its centroids in the sameptr<ptr<f32>>layout KMeans does, so the same packing and sgemm applies unchanged.Related work in the same file
The other four issues in this batch were handled as follows:
Birch.fit, PR perf: bound the Birch.fit subcluster search at the threshold #371, 29.0 ms -> 9.2 ms.Birch.predict, PR perf: bail out of the Birch.predict distance scan once a centroid cannot win #370, 68.4 ms -> 19.6 ms.AgglomerativeClustering.fit, PR perf: cache each row's nearest partner in AgglomerativeClustering.fit #372, 2127.6 ms -> 61.2 ms at 1600 samples, an O(n^3) to O(n^2) change.Birch.transform, closed as a no-op for the same reason as this one.