(valuation) Tweaking penalties a bit

This commit is contained in:
Viktor Lofgren 2024-01-03 15:59:21 +01:00
parent 78c00ad512
commit c770f0b68b

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 + 10 * penalty) / (1.0 + value));
return Math.sqrt((1.0 + scalingFactor + 5 * penalty) / (1.0 + value));
}
}