mirror of
https://github.com/christianvidalwolf-prog/CrazeAnalytix.git
synced 2026-08-03 13:45:23 +02:00
feat: simplify verdict to winner/unsuccessful with >50% threshold
- winner if posterior probability > 50%, unsuccessful otherwise - Removes inconclusive — binary outcome based on Bayesian signal - Label "Loser" renamed to "Unsuccessful" - Updated all stored experiment verdicts in DB Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
127fa9c279
commit
2363982144
@@ -435,9 +435,8 @@ export function computeVerdict(
|
||||
|
||||
const prob = result.posterior_prob_positive;
|
||||
|
||||
if (prob >= 0.90) return { verdict: 'winner', probability: prob };
|
||||
if (prob <= 0.10) return { verdict: 'loser', probability: prob };
|
||||
return { verdict: 'inconclusive', probability: prob };
|
||||
if (prob > 0.50) return { verdict: 'winner', probability: prob };
|
||||
return { verdict: 'loser', probability: prob };
|
||||
}
|
||||
|
||||
// ============ Counterfactual Time Series ============
|
||||
|
||||
Reference in New Issue
Block a user