From a62db134142b2f9f62ba4797e8032bb03e013e17 Mon Sep 17 00:00:00 2001 From: Alexander Mattick Date: Sun, 25 Dec 2022 13:56:15 +0100 Subject: [PATCH] added fixed point definition for prompt --- scripts/postprocessing/scoring.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/postprocessing/scoring.py b/scripts/postprocessing/scoring.py index fcfd49e7..3c145b28 100644 --- a/scripts/postprocessing/scoring.py +++ b/scripts/postprocessing/scoring.py @@ -100,7 +100,7 @@ def score_update_prompts(consensus: npt.ArrayLike, voter_data: Voter) -> Voter: """ # produces the ranking of votes, e.g. for [100,300,200] it returns [0, 2, 1], # since 100 is the lowest, 300 the highest and 200 the middle value - consensus_ranking = np.argsort(np.argsort(consensus)) - len(consensus) // 2 + consensus_ranking = np.arange(len(consensus)) - len(consensus) // 2 + 1 delta_votes = np.sum(consensus_ranking * consensus) new_points = delta_votes + voter_data.prompt_points