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

lost an argument

parent 280d8a4d
......@@ -49,7 +49,7 @@ def transform_ffm_format(df, device_id):
# 将模型加载,预测,把预测日记的概率值按照降序排序,存到一个表里
def predict(user_profile):
user_instance = feature_en(user_profile)
user_instance_file_path = transform_ffm_format(user_instance)
user_instance_file_path = transform_ffm_format(user_instance, user_profile["device_id"])
ffm_model = xl.create_ffm()
ffm_model.setTest(user_instance_file_path)
......@@ -87,4 +87,3 @@ def router(device_id):
if __name__ == "__main__":
router(device_id='358035085192742')
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