Commit 2372f9e4 authored by 张彦钊's avatar 张彦钊

测试获取用户画像方法

parent 6aa119fc
...@@ -206,9 +206,12 @@ if __name__ == "__main__": ...@@ -206,9 +206,12 @@ if __name__ == "__main__":
nearby = ",".join([str(i) for i in (range(73, 76))]) nearby = ",".join([str(i) for i in (range(73, 76))])
nation = ",".join([str(i) for i in (range(77, 80))]) nation = ",".join([str(i) for i in (range(77, 80))])
megacity = ",".join([str(i) for i in (range(81, 83))]) megacity = ",".join([str(i) for i in (range(81, 83))])
# key_head = "device_diary_queue_rerank:device_id:" key_head = "device_diary_queue_rerank:device_id:"
key_head = "device_diary_queue:device_id:" key_head = "device_diary_queue:device_id:"
make_data("868663038800471", "beijing", key_head) make_data("868663038800476", "beijing", key_head)
device_id = "868663038800476"
city_id = "beijing"
device_id = "868663038800471"
......
...@@ -189,7 +189,7 @@ if __name__ == "__main__": ...@@ -189,7 +189,7 @@ if __name__ == "__main__":
users_list = get_all_users() users_list = get_all_users()
name_tag = get_searchworlds_to_tagid() name_tag = get_searchworlds_to_tagid()
n = 1000 n = 500
split_users_list = [users_list[i:i + n] for i in range(0, len(users_list), n)] split_users_list = [users_list[i:i + n] for i in range(0, len(users_list), n)]
for child_users_list in split_users_list: for child_users_list in split_users_list:
total_samples = list() total_samples = 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