|
@@ -49,5 +49,11 @@ def ad_recommend_predict(mid, video_id):
|
|
|
ad_predict = 2
|
|
|
else:
|
|
|
ad_predict = 1
|
|
|
- result = {'mid_video_share_rate': mid_video_share_rate, 'threshold': threshold, 'ad_predict': ad_predict}
|
|
|
+ result = {
|
|
|
+ 'mid_group': mid_group,
|
|
|
+ 'group_share_rate': group_share_rate,
|
|
|
+ 'video_share_rate': video_share_rate,
|
|
|
+ 'mid_video_share_rate': mid_video_share_rate,
|
|
|
+ 'threshold': threshold,
|
|
|
+ 'ad_predict': ad_predict}
|
|
|
return result
|