You need to sign in or sign up before continuing.
提交 47846317 编写于 作者: S sneaxiy

test=develop

上级 a3efba17
...@@ -474,7 +474,7 @@ class EditDistance(MetricBase): ...@@ -474,7 +474,7 @@ class EditDistance(MetricBase):
"There is no data in EditDistance Metric. Please check layers.edit_distance output has been added to EditDistance." "There is no data in EditDistance Metric. Please check layers.edit_distance output has been added to EditDistance."
) )
avg_distance = self.total_distance / self.seq_num avg_distance = self.total_distance / self.seq_num
avg_instance_error = self.instance_error / self.seq_num avg_instance_error = self.instance_error / float(self.seq_num)
return avg_distance, avg_instance_error return avg_distance, avg_instance_error
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册