Skip to content

Commit

Permalink
Fix MCC formula typo (#2801)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiruizhao committed Mar 1, 2023
1 parent 8ae26ab commit 4781270
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tensorflow_addons/metrics/matthews_correlation_coefficient.py
Expand Up @@ -40,8 +40,8 @@ class MatthewsCorrelationCoefficient(tf.keras.metrics.Metric):
prediction. The statistic is also known as
the phi coefficient.
MCC = (TP * TN) - (FP * FN) /
((TP + FP) * (TP + FN) * (TN + FP ) * (TN + FN))^(1/2)
MCC = (TP * TN - FP * FN) /
((TP + FP) * (TP + FN) * (TN + FP) * (TN + FN))^(1/2)
Args:
num_classes : Number of unique classes in the dataset.
Expand Down

0 comments on commit 4781270

Please sign in to comment.