瀏覽代碼

feat:添加日志

zhaohaipeng 6 月之前
父節點
當前提交
bbf862aed9

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

@@ -43,7 +43,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", score < threshold ? 2 : 1);
+        result.put("ad_predict", 2);
         result.put("score", score);
         result.put("threshold", threshold);
         result.put("model", "random");