未验证 提交 aa6b2bda 编写于 作者: Z Zeng Jinle 提交者: GitHub

Merge pull request #14094 from sneaxiy/fix_metrics_api_bug

Fix EditDistanceMetrics API bug
......@@ -478,7 +478,7 @@ class EditDistance(MetricBase):
"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_instance_error = self.instance_error / self.seq_num
avg_instance_error = self.instance_error / float(self.seq_num)
return avg_distance, avg_instance_error
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册