Commit Graph
2 Commits
Author SHA1 Message Date
Joseph Magly 8fe3328e86 Stabilize release test oracles without weakening their guarantees 2026-10-29 00:03:09 -04:00
Joseph MaglyandClaude Opus 5.5 2fe5d902a0 feat(directions): add fisher_lda id, leace alias and exact LEACE
Add a direction-method registry that lists only available methods
(diff_means, svd, fisher_lda, leace, leace_exact; som stays unavailable).
The CLI and UI choices are generated from it. Unknown methods now fail at
construction with the available choices, instead of silently falling back.

fisher_lda is the canonical id for the existing Fisher LDA direction. leace
stays a permanent alias with bit-identical numerics, logs a notice pointing
to leace_exact, and saved metadata records both the requested method and
direction_method_effective.

leace_exact implements closed-form LEACE (Belrose et al., arXiv:2306.03819)
with an eigenvalue floor and a pseudo-inverse for rank-deficient covariance.
The full oblique eraser is exposed for tests and future interventions. The
pipeline uses its removal direction with the existing orthogonal
projection, and logs the eraser loss only as a reference value. Tests check
that, on anisotropic synthetic data, a linear probe is at chance after
erasure, class means coincide, and the eraser is idempotent.

Refs #226

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 18:22:01 -04:00