Commit 82dc002e authored by Your Name's avatar Your Name

test dist predict

parent d91f71f1
......@@ -186,7 +186,7 @@ def main(te_file):
str_result = ""
for prob in preds:
# ctcvr.append((prob["sample_id"][0],prob['pctcvr']))
str_result = str_result + str(prob["sample_id"][0]) + ":"+ prob["uid"] + ":" + prob["city"] + ":" + str(prob["cid_id"]) + ":" + str(prob['pctcvr']) + ";"
str_result = str_result + str(prob["sample_id"][0]) + ":"+ str(prob["uid"]) + ":" + str(prob["city"]) + ":" + str(prob["cid_id"]) + ":" + str(prob['pctcvr']) + ";"
# str_result = list(prob.keys())
# return str_result
return str_result[:-1]
......
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