wangyunpeng vor 3 Monaten
Ursprung
Commit
31bdc25e82

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

@@ -727,7 +727,7 @@ public class RecallService implements ApplicationContextAware {
             }
             if (Objects.nonNull(article.getAvgViewCount()) && article.getAvgViewCount() > 0) {
                 article.setT0FissionByReadAvg(sumFission0 * 1.0 / (article.getAvgViewCount() + 500));
-                avgReadCountSum += article.getAvgViewCount() + 500;
+                avgReadCountSum += article.getAvgViewCount();
                 t0FissionByReadAvgSum += article.getT0FissionByReadAvg();
                 t0FissionByReadAvgCorrelationSum += article.getT0FissionByReadAvg() * correlation;
             }
@@ -751,7 +751,7 @@ public class RecallService implements ApplicationContextAware {
                 content.setT0FissionByReadAvgSumAvg(fissionSum * 1.0 / avgReadCountSum);
             }
             if (avgReadCountSum > 0) {
-                content.setT0FissionDeWeightByReadAvgSumAvg(fissionWeightSum / avgReadCountSum);
+                content.setT0FissionDeWeightByReadAvgSumAvg(fissionWeightSum / (avgReadCountSum + 500));
             }
         }
     }