Skip to content

Commit 43697b6

Browse files
committed
The class_labels should be ground truth data
Based on pytorch docs, the parameter "labels" of add_pr_curve() should be ground truth data. But in Line 141, class_labels append our own predictions. Therefore, I substitute "labels" for "predicted".
1 parent e6dd99c commit 43697b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

16_tensorboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def forward(self, x):
138138
class_probs_batch = [F.softmax(output, dim=0) for output in outputs]
139139

140140
class_preds.append(class_probs_batch)
141-
class_labels.append(predicted)
141+
class_labels.append(labels)
142142

143143
# 10000, 10, and 10000, 1
144144
# stack concatenates tensors along a new dimension

0 commit comments

Comments
 (0)