Skip to content

feat: add z-score data type#85

Merged
eprifti merged 2 commits into
mainfrom
feat/zscore-datatype
Apr 13, 2026
Merged

feat: add z-score data type#85
eprifti merged 2 commits into
mainfrom
feat/zscore-datatype

Conversation

@eprifti
Copy link
Copy Markdown
Contributor

@eprifti eprifti commented Apr 13, 2026

New ZSCORE_TYPE (data_type: zscore) with per-feature mean/std standardization. Stats computed on training data, propagated to test. All languages supported. 4 new tests, 780 total pass.

eprifti added 2 commits April 13, 2026 22:59
New ZSCORE_TYPE (3) with aliases: zscore, z, standardized

- Per-feature mean/std computed on training data in Data.feature_means/feature_stds
- Stats computed automatically when data_type contains 'zscore'
- Propagated from train to test in lib.rs (avoids data leakage)
- Supports all languages (binary, ternary, ratio, pow2, MCMC)
- evaluate_zscore applies (x - mean) / std per feature on the fly

Tested on wetlab_protocol: Test AUC=1.000 with k=5 (Beam)

780 lib tests pass (4 new zscore tests)
@eprifti eprifti merged commit f5507e8 into main Apr 13, 2026
1 check 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