refactor(jmle): own Adam/L-BFGS optimizer loops in Rust - #760
Conversation
|
Warning Review limit reached
Next review available in: 46 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (8)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Current Draft review note for the eventual current-main reconciliation: the PyO3 optimizer wrappers currently normalize callback failures with |
Route backend=rust JMLE through jmle_optimize so moment updates, L-BFGS two-loop/line-search, and adam_lbfgs sequencing no longer execute Python _adam/_lbfgs loops. Adds ownership sentinel, APA doctoring, and changelog. Supersedes draft #751 once product gates pass.
e050b80 to
55be683
Compare
Summary
Public JMLE with
backend="rust"now runs Adam, L-BFGS, andadam_lbfgssequencing in compiledmlsirm-core(jmle_optimize*). Python keeps validation, packing, restarts, and the objective callback only.Supersedes intentional RED draft #751 (issue #626 lineage).
Evidence
cargo test -p mlsirm-core --lib jmle_opt— 4 passedpytest tests/test_jmle_rust_optimizer_ownership.py tests/test_fit_pipeline.py tests/test_cov_f_fit.py— ownership + fit suites green_adam/_lbfgsand requires zero calls underbackend="rust"Doctoring
docs/doctoring/jmle_rust_optimizer_ownership.md(APA 7th: Kingma & Ba 2015; Liu & Nocedal 1989; Nocedal & Wright 2006)docs/changelog.d/751-jmle-rust-optimizer.mdProduct gates
Merge only when python (aggregate + 3.12/3.14), rust, package, fuzz are green.