|
@@ -85,11 +85,11 @@ public class ScoreV2ThresholdPredictModel extends ThresholdPredictModel {
|
|
|
|
|
|
int adPredict;
|
|
|
if (maxItem != null && maxItem.getScore() < threshold) {
|
|
|
- // If final score is below threshold, show the ad
|
|
|
- adPredict = 2;
|
|
|
- } else {
|
|
|
- // Otherwise, do not show the ad
|
|
|
+ // If final score is below threshold, do not show the ad
|
|
|
adPredict = 1;
|
|
|
+ } else {
|
|
|
+ // Otherwise, show the ad
|
|
|
+ adPredict = 2;
|
|
|
}
|
|
|
Map<String, Object> result = new HashMap<>();
|
|
|
result.put("threshold", threshold);
|