|
@@ -76,13 +76,13 @@ def video_recommend(mid, uid, size, app_type, algo_type, client_info):
|
|
log_.info('mid: {}, uid: {}, bottom strategy result: {}, execute time = {}ms'.format(
|
|
log_.info('mid: {}, uid: {}, bottom strategy result: {}, execute time = {}ms'.format(
|
|
mid, uid, rank_result, (end_bottom - start_bottom) * 1000))
|
|
mid, uid, rank_result, (end_bottom - start_bottom) * 1000))
|
|
|
|
|
|
- # # ####### 视频宽高比AB实验
|
|
|
|
- # # 对内容精选进行 视频宽高比分发实验
|
|
|
|
- # if app_type == config_.APP_TYPE['LONG_VIDEO']:
|
|
|
|
- # videos = rank_result
|
|
|
|
- # rank_result = video_rank_by_w_h_rate(videos=videos)
|
|
|
|
- # log_.info('app_type: {}, mid: {}, uid: {}, rank_result: {}, execute time = {}ms'.format(
|
|
|
|
- # app_type, mid, uid, rank_result, (end_rank - start_rank) * 1000))
|
|
|
|
|
|
+ # ####### 视频宽高比AB实验
|
|
|
|
+ # 对内容精选进行 视频宽高比分发实验
|
|
|
|
+ if app_type == config_.APP_TYPE['LONG_VIDEO']:
|
|
|
|
+ videos = rank_result
|
|
|
|
+ rank_result = video_rank_by_w_h_rate(videos=videos)
|
|
|
|
+ log_.info('app_type: {}, mid: {}, uid: {}, rank_result: {}, execute time = {}ms'.format(
|
|
|
|
+ app_type, mid, uid, rank_result, (end_rank - start_rank) * 1000))
|
|
|
|
|
|
# ####### redis数据刷新
|
|
# ####### redis数据刷新
|
|
# log_.info('====== update redis')
|
|
# log_.info('====== update redis')
|