|
@@ -27,11 +27,11 @@ public class Region1hHotCandidate extends IndexCandidateQueue {
|
|
|
Map<String, Candidate> simplifiedCandidates = new ConcurrentHashMap<String, Candidate>();
|
|
|
|
|
|
BigDecimal recallNumBigDecimal = BigDecimal.valueOf(recallNum);
|
|
|
- int combinationNum = recallNumBigDecimal.multiply(BigDecimal.valueOf(0.2)).intValue();
|
|
|
- int rosNum = recallNumBigDecimal.multiply(BigDecimal.valueOf(0.2)).intValue();
|
|
|
- int rovNum = recallNumBigDecimal.multiply(BigDecimal.valueOf(0.4)).intValue();
|
|
|
- int shortRovNum = recallNumBigDecimal.multiply(BigDecimal.valueOf(0.1)).intValue();
|
|
|
- int strNum = recallNumBigDecimal.multiply(BigDecimal.valueOf(0.1)).intValue();
|
|
|
+ int combinationNum = recallNumBigDecimal.multiply(BigDecimal.valueOf(0.6)).intValue();
|
|
|
+// int rosNum = recallNumBigDecimal.multiply(BigDecimal.valueOf(0.2)).intValue();
|
|
|
+ int rovNum = recallNumBigDecimal.multiply(BigDecimal.valueOf(0.1)).intValue();
|
|
|
+ int shortRovNum = recallNumBigDecimal.multiply(BigDecimal.valueOf(0.3)).intValue();
|
|
|
+// int strNum = recallNumBigDecimal.multiply(BigDecimal.valueOf(0.1)).intValue();
|
|
|
|
|
|
|
|
|
QueueName queueName = new QueueName(ItemType, "short_rov")
|
|
@@ -47,11 +47,11 @@ public class Region1hHotCandidate extends IndexCandidateQueue {
|
|
|
currRecall += addCandidateKey(simplifiedCandidates, queueName, rovNum,
|
|
|
getStrategyQueueInfo().getQueueName());
|
|
|
|
|
|
- queueName = new QueueName(ItemType, "short_ros")
|
|
|
- .addMatch("type", "region1h")
|
|
|
- .addMatch("region", region);
|
|
|
- currRecall += addCandidateKey(simplifiedCandidates, queueName, rosNum,
|
|
|
- getStrategyQueueInfo().getQueueName());
|
|
|
+// queueName = new QueueName(ItemType, "short_ros")
|
|
|
+// .addMatch("type", "region1h")
|
|
|
+// .addMatch("region", region);
|
|
|
+// currRecall += addCandidateKey(simplifiedCandidates, queueName, rosNum,
|
|
|
+// getStrategyQueueInfo().getQueueName());
|
|
|
|
|
|
queueName = new QueueName(ItemType, "combination")
|
|
|
.addMatch("type", "region1h")
|
|
@@ -59,11 +59,11 @@ public class Region1hHotCandidate extends IndexCandidateQueue {
|
|
|
currRecall += addCandidateKey(simplifiedCandidates, queueName, combinationNum,
|
|
|
getStrategyQueueInfo().getQueueName());
|
|
|
|
|
|
- queueName = new QueueName(ItemType, "str")
|
|
|
- .addMatch("type", "region1h")
|
|
|
- .addMatch("region", region);
|
|
|
- currRecall += addCandidateKey(simplifiedCandidates, queueName, strNum,
|
|
|
- getStrategyQueueInfo().getQueueName());
|
|
|
+// queueName = new QueueName(ItemType, "str")
|
|
|
+// .addMatch("type", "region1h")
|
|
|
+// .addMatch("region", region);
|
|
|
+// currRecall += addCandidateKey(simplifiedCandidates, queueName, strNum,
|
|
|
+// getStrategyQueueInfo().getQueueName());
|
|
|
|
|
|
candidates.putAll(simplifiedCandidates);
|
|
|
return currRecall;
|