(valuation) Tweaking penalties a bit

This commit is contained in:
Viktor Lofgren 2024-01-03 15:32:33 +01:00
parent 1694b4d6ef
commit 0e970b8037

View File

@ -160,6 +160,9 @@ public class ResultValuator {
if (DocumentMetadata.hasFlags(featureFlags, HtmlFeature.AFFILIATE_LINK.getFeatureBit()))
penalty += 5.0 * largeSiteFactor;
if (DocumentMetadata.hasFlags(featureFlags, HtmlFeature.COOKIES.getFeatureBit()))
penalty += 2.5 * largeSiteFactor;
if (DocumentMetadata.hasFlags(featureFlags, HtmlFeature.TRACKING.getFeatureBit()))
penalty += 2.5 * largeSiteFactor;
@ -221,7 +224,7 @@ public class ResultValuator {
if (value < 0)
value = 0;
return Math.sqrt((1.0 + scalingFactor + penalty) / (1.0 + value));
return Math.sqrt((1.0 + scalingFactor + 10 * penalty) / (1.0 + value));
}
}