Commit ebdc34c2 authored by 高雅喆's avatar 高雅喆

update

parents 85824f88 9a5fe9b9
......@@ -327,11 +327,9 @@ def get_topic_and_pictorial_detail_for_debug(device_id="", underexposure_lin_top
linucb_topic_id_list_all = linucb_topic_id_list + underexposure_lin_topic_ids
underexposure_lin_topic_results = dict()
exposure_lin_topic_results = dict()
logging.info("debug_gyz:", linucb_topic_id_list, underexposure_lin_topic_ids, linucb_topic_id_list_all)
if len(linucb_topic_id_list_all) > 0:
linucb_topic_dict = TopicUtils.get_linucb_topic_info_for_debug(len(linucb_topic_id_list_all),
linucb_topic_list=linucb_topic_id_list_all)
logging.info("debug_gyz:", linucb_topic_dict)
if len(linucb_topic_dict) > 0:
for topic_id in linucb_topic_id_list_all:
topic_id = topic_id
......@@ -351,10 +349,9 @@ def get_topic_and_pictorial_detail_for_debug(device_id="", underexposure_lin_top
"edit_tags": edit_tag_name_score_list}})
# logging.info("linucb_topic:{}".format(linucb_topic_results))
underexposure_lin_topic_results = {k: v for k, v in linucb_topic_results.items() if
k in underexposure_lin_topic_ids}
int(k) in underexposure_lin_topic_ids}
exposure_lin_topic_results = {k: v for k, v in linucb_topic_results.items() if
k in linucb_topic_id_list}
logging.info("debug_gyz:", underexposure_lin_topic_results, exposure_lin_topic_results)
int(k) in linucb_topic_id_list}
if len(rank_topic_id_list) > 0:
rank_topic_dict = TopicUtils.get_linucb_topic_info_for_debug(len(rank_topic_id_list),
linucb_topic_list=rank_topic_id_list)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment