Kaynağa Gözat

20250513-晋级策略2开发

luojunhui 2 ay önce
ebeveyn
işleme
9736140cff

+ 6 - 3
long-article-recommend-service/src/main/java/com/tzld/longarticle/recommend/server/service/recommend/ArticlePromotionService.java

@@ -166,8 +166,11 @@ public class ArticlePromotionService {
             double readRate = nullSafe(o.getReadRate());
             double firstReadRate = nullSafe(o.getFirstReadRate());
 
-            // 计算完整公式
-            double result = readRate * firstReadRate * (numerator / denominator);
+            // 计算 log10 阅读量
+            double logViewCount = (nullSafe(o.getViewCount()) > 0) ? Math.log10(nullSafe(o.getViewCount())) : 0;
+
+            // 计算完整公式  score = 阅读均值倍数 * 阅读率 * T2裂变率 * log10(阅读量)
+            double result = readRate * firstReadRate * (numerator / denominator) * logViewCount;
 
             return result > threshold;
         }).collect(Collectors.toList());
@@ -202,7 +205,7 @@ public class ArticlePromotionService {
                     .collect(Collectors.toList());
         } else {
             // 使用新规则过滤
-            listStrategyV2 = promotionWithReadOpenFissionRate(0.01, list);
+            listStrategyV2 = promotionWithReadOpenFissionRate(0.5, list);
         }
         listStrategyV2 = listStrategyV2.stream().filter(o -> !StrategyV1WxSn.contains(o.getWxSn())).collect(Collectors.toList());