From 71d789aab06d1dda05ebaecff822dd0990cb1fe3 Mon Sep 17 00:00:00 2001 From: Viktor Lofgren Date: Wed, 3 Jan 2024 14:53:53 +0100 Subject: [PATCH] (index) Tweak result valuation renormalization --- .../src/main/java/nu/marginalia/ranking/ResultValuator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/features-index/result-ranking/src/main/java/nu/marginalia/ranking/ResultValuator.java b/code/features-index/result-ranking/src/main/java/nu/marginalia/ranking/ResultValuator.java index 2a856258..2d564e5b 100644 --- a/code/features-index/result-ranking/src/main/java/nu/marginalia/ranking/ResultValuator.java +++ b/code/features-index/result-ranking/src/main/java/nu/marginalia/ranking/ResultValuator.java @@ -221,7 +221,7 @@ public class ResultValuator { if (value < 0) value = 0; - return Math.sqrt((1.0 + scalingFactor) / (1.0 + value)) + Math.sqrt(penalty); + return Math.sqrt((1.0 + scalingFactor + penalty) / (1.0 + value)); } }