Browse Source

feat:修改测试

zhaohaipeng 1 năm trước cách đây
mục cha
commit
1f96a52252

+ 1 - 1
ad-engine-service/src/main/java/com/tzld/piaoquan/ad/engine/service/predict/model/threshold/RandomPredictModel.java

@@ -36,7 +36,7 @@ public class RandomPredictModel extends ThresholdPredictModel {
         double correction = Double.parseDouble(modelParam.getExtraParam().getOrDefault("E620_" + appType + "_" + DateUtils.getCurrentHour(), 1).toString());
         threshold=threshold*correction;
         Map<String, Object> result = new HashMap<>();
-        result.put("ad_predict", 2);
+        result.put("ad_predict", score < threshold ? 2 : 1);
         result.put("score", score);
         result.put("threshold", threshold);
         result.put("model", "random");