Parent: #478
Canonical v2 Diabetes: Flow predict 4.861 ms vs sklearn 0.628 ms. Unlike several other losing estimators, both training and inference are independently slow, so prediction needs its own fix.
Profile test-to-train RBF kernel construction, squared-distance computation, exponentials, alpha dot products, batching, vectorization and temporary matrices. Audit whether Flow materializes more data than required and whether the final kernel-vector product can use optimized dense kernels.
Acceptance: prediction-only profile; batch/sample/support-size curves; zero avoidable per-element allocation; parity remains verified; canonical predict >=0.95x first, target >=1.05x.
Parent: #478
Canonical v2 Diabetes: Flow predict 4.861 ms vs sklearn 0.628 ms. Unlike several other losing estimators, both training and inference are independently slow, so prediction needs its own fix.
Profile test-to-train RBF kernel construction, squared-distance computation, exponentials, alpha dot products, batching, vectorization and temporary matrices. Audit whether Flow materializes more data than required and whether the final kernel-vector product can use optimized dense kernels.
Acceptance: prediction-only profile; batch/sample/support-size curves; zero avoidable per-element allocation; parity remains verified; canonical predict >=0.95x first, target >=1.05x.