sighan#
- class DetectionF1(pos_label=1, name='DetectionF1', *args, **kwargs)[source]#
Bases:
Metric- update(preds, labels, length, *args)[source]#
Update states for metric
Inputs of
updateis the outputs ofMetric.compute, ifcomputeis not defined, the inputs ofupdatewill be flatten arguments of output of mode and label from data:update(output1, output2, ..., label1, label2,...)see
Metric.compute
- class CorrectionF1(pos_label=1, name='CorrectionF1', *args, **kwargs)[source]#
Bases:
DetectionF1- update(det_preds, det_labels, corr_preds, corr_labels, length, *args)[source]#
Update states for metric
Inputs of
updateis the outputs ofMetric.compute, ifcomputeis not defined, the inputs ofupdatewill be flatten arguments of output of mode and label from data:update(output1, output2, ..., label1, label2,...)see
Metric.compute