Jelajahi Sumber

修改 rank-v19

luojunhui 1 Minggu lalu
induk
melakukan
4c20b611db

+ 6 - 0
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/recommend/rank/strategy/RankV19Strategy.java

@@ -43,6 +43,8 @@ public class RankV19Strategy implements RankStrategy {
     private List<String> touliuAccountGhIds;
     @Value("${topProducePlanId:}")
     private String topProducePlanId;
+    @Value("${hisFissionOpenRateMissingBaseline:0.32}")
+    private double hisFissionOpenRateMissingBaseline;
 
     public RankResult rank(RankParam param) {
         List<Content> result = new ArrayList<>();
@@ -78,6 +80,10 @@ public class RankV19Strategy implements RankStrategy {
                             * weightService.getWeight(param.getStrategy(), param.getGhId(), index,
                             ScoreStrategyEnum.VIEW_COUNT_RATE.value());
                 }
+                if (item.getScore(ScoreStrategyEnum.HIS_FISSION_OPEN_RATE.value()) == 0) {
+                    score += hisFissionOpenRateMissingBaseline * weightService.getWeight(param.getStrategy(), param.getGhId(), index,
+                            ScoreStrategyEnum.HIS_FISSION_OPEN_RATE.value());
+                }
             } else {
                 score = item.getScore(ScoreStrategyEnum.SIMILARITY.value())
                         * weightService.getWeight(param.getStrategy(), param.getGhId(), index,

+ 1 - 1
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/recommend/score/strategy/ViewCountRateStrategy.java

@@ -143,7 +143,7 @@ public class ViewCountRateStrategy implements ScoreStrategy {
                     viewCountRate = showViewCountSum / readAvgCiUpperSum;
                 }
                 // 置信度
-                double viewCountRateW = MathUtils.sigmoid(readAvgCiUpperSum, 0.0002, avgViewCountPos);
+                double viewCountRateW = MathUtils.sigmoid(readAvgCiUpperSum, 0.002, avgViewCountPos);
                 double viewCountRateScore = 0;
 
                 if (viewCountRate > 0) {