提交 decfb435 编写于 作者: L liuluobin

fix condition error

上级 ae80c360
......@@ -41,7 +41,7 @@ def _eval_info(pred, truth, option):
ValueError, size of parameter pred or truth is 0.
ValueError, value of parameter option must be in ["precision", "accuracy", "recall"].
"""
if pred.size == 0 || truth.size == 0:
if pred.size == 0 or truth.size == 0:
raise ValueError("Size of pred or truth is 0.")
if option == "accuracy":
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册