|
@@ -40,6 +40,9 @@ public class RandomPredictModel extends ThresholdPredictModel {
|
|
|
modelParam.getExtraParam().getOrDefault("default_threshold","0.5")
|
|
|
.toString());
|
|
|
}
|
|
|
+ double correction=Double.parseDouble(
|
|
|
+ modelParam.getExtraParam().getOrDefault(modelParam.getAppType()+"_"+modelParam.getUserExtraFuture("shareType").toString().replace("return","").replace("mids",""),-1
|
|
|
+ ).toString());
|
|
|
Map<String, Object> result = new HashMap<>();
|
|
|
result.put("ad_predict", score<threshold?2:1);
|
|
|
result.put("score", score);
|