Commit 7c40237f authored by 高雅喆's avatar 高雅喆

update

parent d70dcc7d
......@@ -229,6 +229,12 @@ if __name__ == '__main__':
all_device_portrait_result[device] = portrait_result
debug_all_device_portrait_result[device] = debug_portrait_result
# 比较两个tag列表的重合率
cmd_portrait_top_n = args.portrait_top_n
cmd_coincide_n = args.coincide_n
result = get_2_tags_coincide_rate(all_device_order_tags2, all_device_portrait_result, cmd_portrait_top_n,
cmd_coincide_n)
# 有画像没匹配上的用户的画像信息
no_coincide_devices = result["not_coincide_have_portrait_device_ids"]
no_coincide_devices_debug = dict()
......@@ -248,12 +254,6 @@ if __name__ == '__main__':
log2.info("\n"*6)
# 比较两个tag列表的重合率
cmd_portrait_top_n = args.portrait_top_n
cmd_coincide_n = args.coincide_n
result = get_2_tags_coincide_rate(all_device_order_tags2, all_device_portrait_result, cmd_portrait_top_n,
cmd_coincide_n)
# 统计画像更新的耗时和更新的设备数
sql = "select count(*) from user_service_portrait_tags where stat_date='{my_today}'".format(my_today=my_today)
portrait_device_count = get_data_by_mysql('172.16.40.158', 4000, 'root', '3SYz54LS9#^9sBvC', 'jerry_test', sql)
......
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