Commit 84ca7bb
committed
fix(scoring): correct CBF baseRate denominator — Jøsang SL §12.3
aDenomBase must be u_A + u_B - 2·u_A·u_B.
Previous code used (denom - 2·u_A·u_B) where denom already included
-u_A·u_B, making it u_A + u_B - 3·u_A·u_B — off by one term.
With equal baseRates (always 0.5) the correct formula collapses to 0.5.
The wrong formula produced baseRate ≈ 1.9 when uncertainty is high,
causing projectScore() to exceed 1.0 (→ 100+ clipped to 100).
Visible symptom: github:tankcdr scored 100 with weak signals (github
score 0.50, twitter score 0.20) while github:vbuterin scored 78 with
strong signals (github score 0.80, confidence 0.95). After fix:
tankcdr ≈ 46, vbuterin ≈ 79.1 parent 74e4130 commit 84ca7bb
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
54 | 58 | | |
55 | | - | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| |||
0 commit comments