丁云鹏 10 месяцев назад
Родитель
Сommit
8ff50a8cf7

+ 9 - 6
recommend-server-service/src/main/java/com/tzld/piaoquan/recommend/server/service/score/VlogRovLRScorer.java

@@ -17,14 +17,9 @@ import java.util.concurrent.*;
 
 public class VlogRovLRScorer extends BaseLRModelScorer {
 
-    private final static int CORE_POOL_SIZE = 64;
-
     private static final int LOCAL_TIME_OUT = 150;
     private final static Logger LOGGER = LoggerFactory.getLogger(VlogRovLRScorer.class);
     private static final ExecutorService executorService = Executors.newFixedThreadPool(128);
-    private static final double defaultUserCtrGroupNumber = 10.0;
-    private static final int enterFeedsScoreRatio = 10;
-    private static final int enterFeedsScoreNum = 20;
 
 
     public VlogRovLRScorer(ScorerConfigInfo configInfo) {
@@ -139,7 +134,15 @@ public class VlogRovLRScorer extends BaseLRModelScorer {
 
 
         Map<String, String> featureMap = new HashMap<>();
-
+        if (MapUtils.isNotEmpty(item.getFeatureMap())) {
+            featureMap.putAll(item.getFeatureMap());
+        }
+        if (MapUtils.isNotEmpty(userFeatureMap)) {
+            featureMap.putAll(userFeatureMap);
+        }
+        if (MapUtils.isNotEmpty(sceneFeatureMap)) {
+            featureMap.putAll(sceneFeatureMap);
+        }
 
         double pro = 0.0;
         if (MapUtils.isNotEmpty(featureMap)) {