Skip to content

Roadmap #11: optimize GaussianNB.predict_proba #220

Description

@godofecht

Tracks roadmap rank 11: GaussianNB.predict_proba. Complete the roadmap optimization hypothesis with sklearn-parity-gated benchmark evidence, then update roadmap evidence/disposition before closing.

Implementation ready

The inference optimization landed in #317: repeated Gaussian constants/logs were moved out of the sample × class × feature loop, direct row-major Matrix.data access replaced helper calls in the hot path, one class-score scratch buffer is reused, and probabilities are written directly to the output matrix.

PR #322 supplies the missing dedicated predict_proba evidence. It preserves the pre-#317 implementation as an in-test reference, checks every probability cell on a deterministic 1000 × 32 workload, then runs an identical-workload A/B timing harness. The branch has been rebuilt on current main and contains only that benchmark/regression test.

Fresh CI is fully green: the dedicated GaussianNB.predict_proba benchmark test passes, all 36 Flow tests/examples pass, canonical 19/19 parity passes, the scaled self-baseline gate passes, and the Python native package passes. PR #322 is ready for review. Keep this issue open until #322 lands and the roadmap evidence is regenerated on main.

Activity

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions