Commit 3fbe6830 authored by 张彦钊's avatar 张彦钊

add note for test

parent 1fb7f442
......@@ -183,11 +183,11 @@ def predict(user_profile):
ffm_model.setTest(instance_file_path)
ffm_model.setSigmoid()
print("模型sigmoid成功")
# ffm_model.predict(DIRECTORY_PATH + "model_{0}-{1}_lr{2}_lambda{3}.out".format(DATA_START_DATE,
# DATA_END_DATE, lr, l2_lambda),
# DIRECTORY_PATH + "result/{0}_output.txt".format(user_profile['device_id']))
# print("预测结束")
ffm_model.predict(DIRECTORY_PATH + "model_{0}-{1}_lr{2}_lambda{3}.out".format(DATA_START_DATE,
DATA_END_DATE, lr, l2_lambda),
DIRECTORY_PATH + "result/{0}_output.txt".format(user_profile['device_id']))
print("预测结束")
# predict_save_to_local(user_profile, instance)
def router(device_id):
user_profile, not_exist = fetch_user_profile(device_id)
......
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