Skip to content

Stabilize constant-feature detection - #10

Draft
Ayushdevo wants to merge 1 commit into
mainfrom
fix/constant-feature-validation
Draft

Ayushdevo wants to merge 1 commit into
mainfrom
fix/constant-feature-validation

Conversation

@Ayushdevo

Copy link
Copy Markdown
Owner

Constant-feature detection can overflow on large finite inputs and silently treats invalid tolerances or nonfinite samples as ordinary results. Use the existing finite-sample sanitizer, validate the tolerance, and compute standard deviation on scaled data before comparing in the original units.

Validation: seven added cases fail on base and pass after the change; the selected public drift and sanitizer tests pass (37 tests). Scoped Ruff E/F excluding existing line-length violations and git diff --check pass. Tested changed file matches current main base; full suite not run. AI-assisted contribution.

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