Update anofox-regression to 0.5.2 with new features#45
Merged
Conversation
- Add SolverType (QR/SVD/Cholesky) selection for OLS, Ridge, WLS - Add LambdaScaling (Raw/Glmnet) for Ridge and ElasticNet - Add penalized IRLS (lambda parameter) for all GLM models - Add HC inference (HC0-HC3 heteroscedasticity-consistent SE) for OLS and WLS - Replace manual WLS implementation with native WlsRegressor - Add LmDynamic time-varying coefficient model with IC-based model averaging - Add condition number diagnostics module - Add quasi-separation detection for binary/count GLMs - Add LOWESS smoothing as standalone function - Wire all new options through FFI layer with C-compatible types Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The C header was out of sync with Rust FFI struct definitions after adding solver, hc_type, lambda_scaling, and lambda fields. This caused C++ code to create undersized structs, leading to Rust reading uninitialized memory (OLS returning NULL, WLS segfaulting). - Add SolverType, LambdaScaling, HcType enums to C header - Add solver + hc_type fields to OLS and WLS option structs - Add solver + lambda_scaling fields to Ridge option struct - Add lambda_scaling field to ElasticNet option struct - Add lambda field to Poisson, Binomial, NegBinomial, Tweedie options - Add LmDynamic types and function declarations - Initialize new fields in all 16 C++ aggregate/table/window functions Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The prediction interval tests used y = 2x + 1 (exact linear fit), giving residual_std_error = 0. With the new SVD solver, this produced zero-width intervals at all confidence levels, failing the 99% > 90% width comparison. Adding small noise ensures non-zero residuals for meaningful interval tests. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Test plan
🤖 Generated with Claude Code