|
@@ -110,6 +110,7 @@ public class PredictModelServiceImpl implements PredictModelService {
|
|
|
condition2
|
|
|
&&
|
|
|
abTestConfigContainer.inWithoutAdTime(configMap,requestParam.getAbTestCode(),hourOfDay)){
|
|
|
+
|
|
|
result.put("ad_predict", 1);
|
|
|
result.put("no_ad_strategy", "no_ad_time_with_time_plan");
|
|
|
return result;
|
|
@@ -117,6 +118,7 @@ public class PredictModelServiceImpl implements PredictModelService {
|
|
|
(!condition1 || (condition1 && !condition2))
|
|
|
&&
|
|
|
(0 <= hourOfDay && hourOfDay < 8)) {
|
|
|
+
|
|
|
result.put("ad_predict", 1);
|
|
|
result.put("no_ad_strategy", "no_ad_time_with_fixed_time");
|
|
|
return result;
|
|
@@ -128,6 +130,7 @@ public class PredictModelServiceImpl implements PredictModelService {
|
|
|
String shareType =null;
|
|
|
|
|
|
String[] appIdArr=oldExpGroupAppId.split(",");
|
|
|
+
|
|
|
List<String> appIdList=Arrays.asList(appIdArr);
|
|
|
if(appIdList.contains(requestParam.getAppType().toString())){
|
|
|
|
|
@@ -219,11 +222,11 @@ public class PredictModelServiceImpl implements PredictModelService {
|
|
|
modelParam.addUserExtraFuture("shareType",shareType);
|
|
|
setExtraParam(modelParam);
|
|
|
|
|
|
+
|
|
|
if(expCodes.contains("599")||
|
|
|
(expCodes.contains(NewExpInfoHelper.flagId)&&NewExpInfoHelper.checkInNewExpGroupAndSetParamIfIn(
|
|
|
requestParam.getAppType().toString(),requestParam.getNewExpGroup(),"599",modelParam))){
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
result = ThresholdModelContainer.
|
|
|
getThresholdPredictModel("random")
|
|
|
.predict(modelParam);
|
|
@@ -231,8 +234,7 @@ public class PredictModelServiceImpl implements PredictModelService {
|
|
|
||
|
|
|
(expCodes.contains(NewExpInfoHelper.flagId)&&NewExpInfoHelper.checkInNewExpGroupAndSetParamIfIn(
|
|
|
requestParam.getAppType().toString(),requestParam.getNewExpGroup(),"607",modelParam))){
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
result = ThresholdModelContainer.
|
|
|
getThresholdPredictModel("immersion")
|
|
|
.predict(modelParam);
|