|
@@ -197,7 +197,7 @@ public class PredictModelServiceImpl implements PredictModelService {
|
|
result = ThresholdModelContainer.
|
|
result = ThresholdModelContainer.
|
|
getThresholdPredictModel("random")
|
|
getThresholdPredictModel("random")
|
|
.predict(modelParam);
|
|
.predict(modelParam);
|
|
- }else if(expCodes.contains(adPredictImmersionExpCode)){
|
|
|
|
|
|
+ }else if(inExpList(expCodes,adPredictImmersionExpCode)){
|
|
// if(randomModelExpCode!=null){
|
|
// if(randomModelExpCode!=null){
|
|
// modelParam.addUserExtraFuture("randomModelKey",ExpCodeEnum.valueOfExpCode(randomModelExpCode).getRandomModelKey());
|
|
// modelParam.addUserExtraFuture("randomModelKey",ExpCodeEnum.valueOfExpCode(randomModelExpCode).getRandomModelKey());
|
|
result = ThresholdModelContainer.
|
|
result = ThresholdModelContainer.
|
|
@@ -265,4 +265,14 @@ public class PredictModelServiceImpl implements PredictModelService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+ boolean inExpList(Set<String> set,String expCodes){
|
|
|
|
+ String[] expArr=expCodes.split(",");
|
|
|
|
+ for(String str:expArr){
|
|
|
|
+ if(set.contains(str)){
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
}
|
|
}
|