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
"""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.
11
+
12
+
Parameters
13
+
----------
14
+
num_classes : int
15
+
Number of classes in the dataset.
16
+
"""
17
+
6
18
def__init__(self, num_classes):
7
19
super().__init__()
8
20
9
21
self.num_classes=num_classes
10
22
11
23
defforward(self, y_true, y_pred):
12
-
pass
24
+
"""Calculates the precision score given number of classes and the true and predicted labels.
0 commit comments