未验证 提交 89727c93 编写于 作者: W Wu Yi 提交者: GitHub

Merge pull request #9935 from typhoonzero/fix_metrics_name

fix chunk evaluator name in metrics
...@@ -169,7 +169,7 @@ class Accuracy(MetricBase): ...@@ -169,7 +169,7 @@ class Accuracy(MetricBase):
return self.value / self.weight return self.value / self.weight
class ChunkEvalutor(MetricBase): class ChunkEvaluator(MetricBase):
""" """
Accumulate counter numbers output by chunk_eval from mini-batches and Accumulate counter numbers output by chunk_eval from mini-batches and
compute the precision recall and F1-score using the accumulated counter compute the precision recall and F1-score using the accumulated counter
...@@ -177,7 +177,7 @@ class ChunkEvalutor(MetricBase): ...@@ -177,7 +177,7 @@ class ChunkEvalutor(MetricBase):
""" """
def __init__(self, name=None): def __init__(self, name=None):
super(ChunkEvalutor, self).__init__(name) super(ChunkEvaluator, self).__init__(name)
self.num_infer_chunks = 0 self.num_infer_chunks = 0
self.num_label_chunks = 0 self.num_label_chunks = 0
self.num_correct_chunks = 0 self.num_correct_chunks = 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册