|
@@ -17,14 +17,9 @@ import java.util.concurrent.*;
|
|
|
|
|
|
public class VlogRovLRScorer extends BaseLRModelScorer {
|
|
public class VlogRovLRScorer extends BaseLRModelScorer {
|
|
|
|
|
|
- private final static int CORE_POOL_SIZE = 64;
|
|
|
|
-
|
|
|
|
private static final int LOCAL_TIME_OUT = 150;
|
|
private static final int LOCAL_TIME_OUT = 150;
|
|
private final static Logger LOGGER = LoggerFactory.getLogger(VlogRovLRScorer.class);
|
|
private final static Logger LOGGER = LoggerFactory.getLogger(VlogRovLRScorer.class);
|
|
private static final ExecutorService executorService = Executors.newFixedThreadPool(128);
|
|
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) {
|
|
public VlogRovLRScorer(ScorerConfigInfo configInfo) {
|
|
@@ -139,7 +134,15 @@ public class VlogRovLRScorer extends BaseLRModelScorer {
|
|
|
|
|
|
|
|
|
|
Map<String, String> featureMap = new HashMap<>();
|
|
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;
|
|
double pro = 0.0;
|
|
if (MapUtils.isNotEmpty(featureMap)) {
|
|
if (MapUtils.isNotEmpty(featureMap)) {
|