Skip to content

[Perf #478] KernelRidge RBF predict: eliminate ~7.7x inference gap with batched kernel evaluation #488

Description

@godofecht

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions