|
@@ -342,7 +342,7 @@ def predict_mid_video_res_with_multiply(now_date, mid, video_id, abtest_param, a
|
|
|
return result
|
|
|
|
|
|
|
|
|
-def ad_recommend_predict(app_type, mid, video_id, ab_exp_info, ab_test_code, care_model_status):
|
|
|
+def ad_recommend_predict(model, app_type, mid, video_id, ab_exp_info, ab_test_code, care_model_status):
|
|
|
"""
|
|
|
广告推荐预测
|
|
|
:param app_type: app_type
|
|
@@ -367,7 +367,12 @@ def ad_recommend_predict(app_type, mid, video_id, ab_exp_info, ab_test_code, car
|
|
|
threshold_mix_func = abtest_param.get('threshold_mix_func', None)
|
|
|
if predict_model == 'xgb':
|
|
|
result = xgboost_predict(
|
|
|
- app_type=app_type, mid=mid, video_id=video_id, abtest_id=abtest_id, ab_test_code=ab_test_code
|
|
|
+ model=model,
|
|
|
+ app_type=app_type,
|
|
|
+ mid=mid,
|
|
|
+ video_id=video_id,
|
|
|
+ abtest_id=abtest_id,
|
|
|
+ ab_test_code=ab_test_code
|
|
|
)
|
|
|
elif threshold_mix_func == 'add':
|
|
|
result = predict_mid_video_res_with_add(
|