Skip to content

fix: numeric correctness (statistics, metrics, parsing) - #7

Open
skymanbp wants to merge 1 commit into
mainfrom
fix/numeric
Open

fix: numeric correctness (statistics, metrics, parsing)#7
skymanbp wants to merge 1 commit into
mainfrom
fix/numeric

Conversation

@skymanbp

Copy link
Copy Markdown
Owner

Fork validation PR. 19 files; local test all exit 0 (main 1111, parsing 151, learn-internal 194, fastcsv 61); fourmolu clean.

- Int mean/median widen per element instead of wrapping at 2^63.
- correlation uses the centered two-pass form, clamped: the one-pass
  form returned |r| > 1, NaN, or a flipped sign on offset data.
- skewness computes population g1, the formula the docs define; the
  old factor was off by sqrt((n-1)/n).
- variance of n < 2 is NaN (scatter kernels included), not a fake 0
  that made singleton groups look constant.
- mse/mae/r2/accuracy/logLoss average over compared pairs and refuse
  to score zero predictions; meanSquaredError guards length mismatch.
- readInt rejects overflow instead of wrapping.
- Double parsing is correctly rounded: exact byte-level reference
  (clamped exponents), Clinger fast path, Infinity round-trips.
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