Commit ce6ce8df authored by 赵威's avatar 赵威

add printer

parent faa9f7a9
......@@ -17,6 +17,7 @@ def predict_with_city_changed(device_dict, diary_dict, tractate_dict, diary_pred
device_id = str(device_id, "utf-8")
print(device_id + " " + str(datetime.now()))
offline_predict_diary(device_id, device_dict, diary_dict, diary_predict_fn)
print("---------------------")
offline_predict_tractate(device_id, device_dict, tractate_dict, tractate_predict_fn)
print("=========================================\n")
except Exception as e:
......
......@@ -34,6 +34,7 @@ def user_portrait_scan_info(device_dict, diary_dict, tractate_dict, diary_predic
all_count += 1
print(str(all_count) + ": " + device_id)
offline_predict_diary(device_id, device_dict, diary_dict, diary_predict_fn, size=200)
print("---------------------")
offline_predict_tractate(device_id, device_dict, tractate_dict, tractate_predict_fn, size=200)
print("=========================================\n")
......
......@@ -29,6 +29,7 @@ def consume_kafka(device_dict, diary_dict, tractate_dict, diary_predict_fn, trac
# if device_id == "androidid_a25a1129c0b38f7b":
print(device_id + " " + log_time + " " + event_cn + " " + str(datetime.now()))
offline_predict_diary(device_id, device_dict, diary_dict, diary_predict_fn, size=300)
print("---------------------")
offline_predict_tractate(device_id, device_dict, tractate_dict, tractate_predict_fn, size=300)
print("=========================================\n")
except Exception as e:
......
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