|
@@ -332,9 +332,9 @@ def predict_mid_video_res_with_model(now_date, mid, video_id, abtest_param, abte
|
|
final_score, online_score = get_final_score(online_features, offline_score)
|
|
final_score, online_score = get_final_score(online_features, offline_score)
|
|
threshold = float(redis_helper.get_data_from_redis(key_name=threshold_key))
|
|
threshold = float(redis_helper.get_data_from_redis(key_name=threshold_key))
|
|
|
|
|
|
-
|
|
+
|
|
- if final_score > threshold:
|
|
+ if final_score < threshold:
|
|
-
|
|
+
|
|
ad_predict = 2
|
|
ad_predict = 2
|
|
else:
|
|
else:
|
|
|
|
|