Skip to content

Fix inference losses in the AL, finish, and PowerMean solvers - #101

Merged
timholy merged 1 commit into
mainfrom
teh/auglag-inference
Oct 25, 2026
Merged

timholy merged 1 commit into
mainfrom
teh/auglag-inference

Conversation

@timholy

@timholy timholy commented Oct 25, 2026

Copy link
Copy Markdown
Member

_difference_solve! returns Vector{T} from both branches; its CHOLMOD branch used to return Vector{Float64}, which made the weighted-solve closure of _abslog2_auglag return a union for wide element types and widened the whole multiplier loop to Any.

Three closures captured variables that are also assigned elsewhere in their function and so were boxed: the Hessian product of the PowerMean Newton step (a per-edge dynamic dispatch), the dual-feasibility check of the active-set finish, and the diagonal-position comprehension of _powermean_linsolve. Each now captures a binding made once. _check_representable specializes on its predicate arguments.

Assisted-by: Claude Fable 5.1 noreply@anthropic.com

`_difference_solve!` returns `Vector{T}` from both branches; its
CHOLMOD branch used to return `Vector{Float64}`, which made the
weighted-solve closure of `_abslog2_auglag` return a union for wide
element types and widened the whole multiplier loop to `Any`.

Three closures captured variables that are also assigned elsewhere in
their function and so were boxed: the Hessian product of the PowerMean
Newton step (a per-edge dynamic dispatch), the dual-feasibility check
of the active-set finish, and the diagonal-position comprehension of
`_powermean_linsolve`. Each now captures a binding made once.
`_check_representable` specializes on its predicate arguments.

Assisted-by: Claude Fable 5.1 <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.34%. Comparing base (92e6ff3) to head (43d695b).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #101   +/-   ##
=======================================
  Coverage   98.34%   98.34%           
=======================================
  Files          25       25           
  Lines        7540     7542    +2     
=======================================
+ Hits         7415     7417    +2     
  Misses        125      125           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@timholy
timholy merged commit ee9aedf into main Oct 25, 2026
7 checks passed
@timholy
timholy deleted the teh/auglag-inference branch October 25, 2026 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant