Commit 52d9d5ee authored by 张彦钊's avatar 张彦钊

sortvalues 参数修改

parent 3bc1226a
......@@ -64,7 +64,7 @@ def upload_predict(user_profile, instance):
"result/{0}_output.txt".format(user_profile['device_id']), header=None)
probabilities = probabilities.rename(columns={0: "prob"})
probabilities["cid"] = instance['cid']
probabilities = probabilities.sort_values(by="0", ascending=False)
probabilities = probabilities.sort_values(by="prob", ascending=False)
wrapper_result(probabilities, 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