|
@@ -419,7 +419,7 @@ def video_old_recommend(request_id, mid, uid, size, top_K, flow_pool_P, app_type
|
|
'flow_pool_recall': recall_result_list[2]
|
|
'flow_pool_recall': recall_result_list[2]
|
|
}
|
|
}
|
|
#if ab_code=="ab_new_test":
|
|
#if ab_code=="ab_new_test":
|
|
- print("before data:", data)
|
|
|
|
|
|
+ #print("before data:", data)
|
|
rank_result = video_new_rank2(data=data, size=size, top_K=top_K, flow_pool_P=float(flow_pool_P))
|
|
rank_result = video_new_rank2(data=data, size=size, top_K=top_K, flow_pool_P=float(flow_pool_P))
|
|
#print(rank_result)
|
|
#print(rank_result)
|
|
|
|
|
|
@@ -1587,12 +1587,12 @@ def video_relevant_recommend(request_id, video_id, mid, uid, size, app_type, ab_
|
|
|
|
|
|
# redis数据刷新
|
|
# redis数据刷新
|
|
update_redis_st = time.time()
|
|
update_redis_st = time.time()
|
|
- if ab_code == 60047 or ab_code == 60048 or ab_code == 60049:
|
|
|
|
- update_flow_redis_data(result=rank_result, app_type=app_type, mid=mid, top_K=top_K)
|
|
|
|
- elif ab_code == 60050 or ab_code == 60051:
|
|
|
|
- update_redis_data(result=rank_result, app_type=app_type, mid=mid, top_K=top_K)
|
|
|
|
- else:
|
|
|
|
- update_redis_data(result=rank_result, app_type=app_type, mid=mid, top_K=top_K)
|
|
|
|
|
|
+ # if ab_code == 60047 or ab_code == 60048 or ab_code == 60049:
|
|
|
|
+ # update_flow_redis_data(result=rank_result, app_type=app_type, mid=mid, top_K=top_K)
|
|
|
|
+ # elif ab_code == 60050 or ab_code == 60051:
|
|
|
|
+ # update_redis_data(result=rank_result, app_type=app_type, mid=mid, top_K=top_K)
|
|
|
|
+ # else:
|
|
|
|
+ # update_redis_data(result=rank_result, app_type=app_type, mid=mid, top_K=top_K)
|
|
# log_.info({
|
|
# log_.info({
|
|
# 'logTimestamp': int(time.time() * 1000),
|
|
# 'logTimestamp': int(time.time() * 1000),
|
|
# 'request_id': request_id,
|
|
# 'request_id': request_id,
|