|
@@ -89,6 +89,8 @@ public class ScoreV2ThresholdPredictModel extends ThresholdPredictModel {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
int adPredict;
|
|
int adPredict;
|
|
if (maxItem != null && maxItem.getScore() < threshold) {
|
|
if (maxItem != null && maxItem.getScore() < threshold) {
|
|
// If final score is below threshold, do not show the ad
|
|
// If final score is below threshold, do not show the ad
|
|
@@ -99,6 +101,7 @@ public class ScoreV2ThresholdPredictModel extends ThresholdPredictModel {
|
|
}
|
|
}
|
|
if(maxItem != null){
|
|
if(maxItem != null){
|
|
ThresholdModelContainer.mergingDigestAddScore(maxItem.getScore());
|
|
ThresholdModelContainer.mergingDigestAddScore(maxItem.getScore());
|
|
|
|
+ log.info("svc=ScoreV2ThresholdPredictModel_predict modelName=ScoreV2ThresholdPredictModel ctr={} cvr={} str={} ros={} breakRate={}", maxItem.getCtr(),maxItem.getCvr(),maxItem.getStr(),maxItem.getRos(),maxItem.getBreakRate());
|
|
}
|
|
}
|
|
|
|
|
|
Map<String, Object> result = new HashMap<>();
|
|
Map<String, Object> result = new HashMap<>();
|