Skip to content

Commit

Permalink
Add argument comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jpblackburn committed Jul 27, 2020
1 parent 83927a9 commit 913c1e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pytorch_lightning/metrics/classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def __init__(
normalize: whether to compute a normalized confusion matrix
reduce_group: the process group to reduce metric results from DDP
reduce_op: the operation to perform for ddp reduction
num_classes: number of classes if known. Important for DDP reduction.
"""
super().__init__(name='confusion_matrix',
reduce_group=reduce_group,
Expand Down
1 change: 1 addition & 0 deletions pytorch_lightning/metrics/functional/classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ def confusion_matrix(
pred: estimated targets
target: ground truth labels
normalize: normalizes confusion matrix
num_classes: number of classes if known
Return:
Tensor, confusion matrix C [num_classes, num_classes ]
Expand Down

0 comments on commit 913c1e3

Please sign in to comment.