diff --git a/ppcls/metric/metrics.py b/ppcls/metric/metrics.py index 7c6407e7a4c74fa7d4330d72c6be52f6a843cdf0..03e742082b57439227746d21695379b498e7f1d8 100644 --- a/ppcls/metric/metrics.py +++ b/ppcls/metric/metrics.py @@ -302,8 +302,5 @@ class AccuracyScore(MutiLabelMetric): fps = mcm[:, 0, 1] accuracy = (sum(tps) + sum(tns)) / ( sum(tps) + sum(tns) + sum(fns) + sum(fps)) - precision = sum(tps) / (sum(tps) + sum(fps)) - recall = sum(tps) / (sum(tps) + sum(fns)) - F1 = 2 * (accuracy * recall) / (accuracy + recall) metric_dict["AccuracyScore"] = paddle.to_tensor(accuracy) return metric_dict