Skip to content

Run focused LASSO Cox regression validation on relevant master changes - #130

Merged
sbalci merged 2 commits into
masterfrom
codex/lassocox-targeted-validation
Nov 28, 2026
Merged

sbalci merged 2 commits into
masterfrom
codex/lassocox-targeted-validation

Conversation

@sbalci

@sbalci sbalci commented Nov 1, 2026

Copy link
Copy Markdown
Owner

The October 28 default-branch change added numerical regression tests, but the successful release/pkgdown workflows only cross-checked versions. Add a separate, path-filtered workflow for relevant master pushes, pull requests and manual dispatch. It installs only the focused dependencies, requires the independent ncvreg comparison, fails on failures/errors/skips/zero tests, and uploads results plus sessionInfo. Existing full-package workflows remain unchanged.

Strengthen the existing validation file so Breslow KKT assertions use the module's returned coefficients and check active/inactive conditions. Add exact missing-row and treatment-coding assertions, explicit event mapping under reordered levels/numeric codes, seeded stratified-fold/RNG checks, and hand-counted concordance boundary cases. Include a reproducible runner, execution matrix, report, and separate optimizer-precision diagnostic. No production R, generated header, YAML analysis, menu or fitting defaults change.

Validation executed locally on Ubuntu 24.04 / R 4.3.3 / jmvcore 28.3 / survival 3.5-8 / ncvreg 3.16.0: 74 assertions passed with glmnet 4.1-8; 74 passed with current glmnet 5.2, repeated in a fresh process with identical result records; zero failures/errors/skips/warnings. The unmodified October 28 file also passed before expansion (38 assertions without the optional ncvreg branch; that branch subsequently executed successfully). YAML/R parsing and git diff --check passed.

The report documents a separate sparse-event synthetic fixture where old glmnet default optimization differed from tighter fitting; the discrepancy is much smaller with 5.2. This was adjudicated against upstream glmnet and ncvreg, not attributed to the October 28 commit. No inference about the longstanding AppVeyor failure is made.

Scope: focused source-wrapper/backend tests only; full umbrella namespace/package checks, other LASSO test files, desktop rendering, clinical validation, optimism correction and external prediction validation remain outside this result.

sbalci and others added 2 commits November 28, 2026 13:56
Source utils-survival-tables.R, where .populateSurvivalTable moved on
2026-11-08; without it 13 tests errored on master as well. Map module
coefficients by the encoding table's design columns, as the ncvreg check
already does, and compare with the uncentred glmnet fit at optimizer
precision (1e-3). The KKT stationarity check stays the exact oracle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sbalci
sbalci force-pushed the codex/lassocox-targeted-validation branch from 5dc866d to a371c40 Compare November 28, 2026 10:58
@sbalci
sbalci merged commit 68efa03 into master Nov 28, 2026
4 of 7 checks passed
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