Commit bda64518 authored by 张彦钊's avatar 张彦钊

add note for test

parent 7a2802dd
......@@ -206,7 +206,14 @@ if __name__ == "__main__":
old_device_id_list = pd.read_csv(DIRECTORY_PATH + "data_set_device_id.csv")["device_id"].values.tolist()
for device_id in device_id_list:
if device_id in old_device_id_list:
router(device_id)
# router(device_id)
user_profile, not_exist = fetch_user_profile(device_id)
if not_exist == 1:
print('Sorry, we don\'t have you.')
else:
predict(user_profile)
else:
print("该用户不是老用户,不能预测")
# end = time.time()
......
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