Skip to content
This repository was archived by the owner on Dec 16, 2022. It is now read-only.

Commit 1bca7f6

Browse files
rangwani-harshnelson-liu
authored andcommitted
Correct The Pearson Correlation Formula In Docs (#2683)
1 parent 0f41750 commit 1bca7f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

allennlp/training/metrics/pearson_correlation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class PearsonCorrelation(Metric):
2828
2929
If we have these values, the sample Pearson correlation coefficient is simply:
3030
31-
r = covariance * (sqrt(predictions_variance) * sqrt(labels_variance))
31+
r = covariance / (sqrt(predictions_variance) * sqrt(labels_variance))
3232
"""
3333
def __init__(self) -> None:
3434
self._predictions_labels_covariance = Covariance()

0 commit comments

Comments
 (0)