|
@@ -23,11 +23,11 @@ public class Global24hHotCandidate extends IndexCandidateQueue {
|
|
|
@Override
|
|
|
public int addCandidateKey(Map<String, Candidate> candidates, int recallNum, User user, RecommendRequest requestData, int requestIndex, int expId) {
|
|
|
int currRecall = 0;
|
|
|
- Map<String, Candidate> simplifiedCandidates = new ConcurrentHashMap<String, Candidate>();
|
|
|
+ Map<String, Candidate> simplifiedCandidates = new ConcurrentHashMap<>();
|
|
|
|
|
|
BigDecimal recallNumBigDecimal = BigDecimal.valueOf(recallNum);
|
|
|
- int strNum = recallNumBigDecimal.multiply(BigDecimal.valueOf(0.1)).intValue();
|
|
|
- int rovNum = recallNumBigDecimal.multiply(BigDecimal.valueOf(0.9)).intValue();
|
|
|
+ int rosNum = recallNumBigDecimal.multiply(BigDecimal.valueOf(0.6)).intValue();
|
|
|
+ int rovNum = recallNumBigDecimal.multiply(BigDecimal.valueOf(0.4)).intValue();
|
|
|
|
|
|
|
|
|
QueueName queueName = new QueueName(ItemType, "rov")
|
|
@@ -35,9 +35,9 @@ public class Global24hHotCandidate extends IndexCandidateQueue {
|
|
|
currRecall += addCandidateKey(simplifiedCandidates, queueName, rovNum, getStrategyQueueInfo().getQueueName());
|
|
|
|
|
|
|
|
|
- queueName = new QueueName(ItemType, "str")
|
|
|
+ queueName = new QueueName(ItemType, "short_ros")
|
|
|
.addMatch("type", "global24h");
|
|
|
- currRecall += addCandidateKey(simplifiedCandidates, queueName, strNum, getStrategyQueueInfo().getQueueName());
|
|
|
+ currRecall += addCandidateKey(simplifiedCandidates, queueName, rosNum, getStrategyQueueInfo().getQueueName());
|
|
|
|
|
|
candidates.putAll(simplifiedCandidates);
|
|
|
return currRecall;
|