|
@@ -87,9 +87,11 @@ public class ScoreV2ThresholdPredictModel extends ThresholdPredictModel {
|
|
|
maxItem = item;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+ double realThreshold=Double.parseDouble(
|
|
|
+ scoreParam.getExtraParam().getOrDefault("ScoreV2ThresholdPredict_"+modelParam.getAppType(),threshold).toString()
|
|
|
+ );
|
|
|
int adPredict;
|
|
|
- if (maxItem != null && maxItem.getScore() < threshold) {
|
|
|
+ if (maxItem != null && maxItem.getScore() < realThreshold) {
|
|
|
// If final score is below threshold, do not show the ad
|
|
|
adPredict = 1;
|
|
|
} else {
|