Skip to content

Commit 4781270

Browse files
authored
Fix MCC formula typo (#2801)
1 parent 8ae26ab commit 4781270

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tensorflow_addons/metrics/matthews_correlation_coefficient.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ class MatthewsCorrelationCoefficient(tf.keras.metrics.Metric):
4040
prediction. The statistic is also known as
4141
the phi coefficient.
4242
43-
MCC = (TP * TN) - (FP * FN) /
44-
((TP + FP) * (TP + FN) * (TN + FP ) * (TN + FN))^(1/2)
43+
MCC = (TP * TN - FP * FN) /
44+
((TP + FP) * (TP + FN) * (TN + FP) * (TN + FN))^(1/2)
4545
4646
Args:
4747
num_classes : Number of unique classes in the dataset.

0 commit comments

Comments
 (0)