You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: utils/metrics/precision.py
+7-51Lines changed: 7 additions & 51 deletions
Original file line number
Diff line number
Diff line change
@@ -7,20 +7,23 @@
7
7
8
8
9
9
classPrecision(nn.Module):
10
-
"""Metric module for precision. Can calculate precision both as a mean of precisions or as brute function of true positives and false positives. This is for now controller with the USE_MEAN macro.
10
+
"""Metric module for precision. Can calculate precision both as a mean of precisions or as brute function of true positives and false positives.
11
11
12
12
Parameters
13
13
----------
14
14
num_classes : int
15
15
Number of classes in the dataset.
16
+
use_mean : bool
17
+
Whether to calculate precision as a mean of precisions or as a brute function of true positives and false positives.
0 commit comments