diff options
author | Justin Bedo <cu@cua0.org> | 2022-09-29 08:55:35 +1000 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2022-09-29 09:30:22 +1000 |
commit | 0d55380acb3af5391714b89666a1c008c9c720f4 (patch) | |
tree | e08ad5272fc4f81c02d9fbe8df5cb332d94c6341 /src | |
parent | 8ecdab68587c07cf88ebc0b8a8f2bd0e1a703e37 (diff) |
bugfix: estimate of labelling on wrong class
Diffstat (limited to 'src')
-rw-r--r-- | src/scrape.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scrape.hs b/src/scrape.hs index 7a5a280..1cccb67 100644 --- a/src/scrape.hs +++ b/src/scrape.hs @@ -91,8 +91,8 @@ weightedMean w0 w1 xs = puCorrection hgvs ys = let lab = map notTer hgvs - in M.fromListWith (++) (zip lab $ map pure ys) ^. at 1 <&> \nons -> - let cf = 1 - mean nons -- NB: reversed due to dms score being lower when Ter + in M.fromListWith (++) (zip lab $ map pure ys) ^. at 0 <&> \nonsc -> + let cf = 1 - mean nonsc -- NB: reversed due to dms score being lower when Ter w0 = 2 / cf w1 = 1 / mean lab in pava' (weightedMean w0 w1) lab |