File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
CollaborativeCoding/metrics Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ class Precision(nn.Module):
1010 ----------
1111 num_classes : int
1212 Number of classes in the dataset.
13- micro_averaging : bool
14- Performs micro -averaging if True, otherwise macro -averaging.
13+ macro_averaging : bool
14+ Performs macro -averaging if True, otherwise micro -averaging.
1515 """
1616
1717 def __init__ (self , num_classes : int , macro_averaging : bool = False ):
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ def main():
145145 for x , y in tqdm (trainloader , desc = "Training" ):
146146 x , y = x .to (device ), y .to (device )
147147 logits = model .forward (x )
148- loss = criterion (logits , y )
148+ loss = criterion (logits , y )
149149 loss .backward ()
150150
151151 optimizer .step ()
You can’t perform that action at this time.
0 commit comments