Bladeren bron

2025-04-15 冷启动晋级优化

luojunhui 1 week geleden
bovenliggende
commit
7431de26a5

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

@@ -106,7 +106,7 @@ public class ArticlePromotionService {
      * @param confidence: 置信度
      * @return boolean: true / false
      */
-    public static boolean isExperimentGroupSuperior(double readAvg, int fansA, double viewCount, int fansB, double confidence) {
+    public static boolean isExperimentGroupStatisticallySuperior(double readAvg, int fansA, double viewCount, int fansB, double confidence) {
 
         if (fansA <= 0 || fansB <= 0) {
             throw new IllegalArgumentException("样本量必须大于零");
@@ -149,7 +149,7 @@ public class ArticlePromotionService {
             List<DatastatSortStrategy> listStrategy2 = list.stream()
                     .filter(o -> {
                         try {
-                            return isExperimentGroupSuperior(o.getAvgViewCount() * 1.1 * 30, o.getFans() * 30,
+                            return isExperimentGroupStatisticallySuperior(o.getAvgViewCount() * 1.1 * 30, o.getFans() * 30,
                                     o.getViewCount(), o.getFans(), 0.95);
                         }
                         catch (Exception e) {