Repository navigation
Run focused LASSO Cox regression validation on relevant master changes - #130
Merged
Merged
Conversation
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
force-pushed
the
codex/lassocox-targeted-validation
branch
from
November 28, 2026 10:58
5dc866d to
a371c40
Compare
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.
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.