We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Concordance Correlation Coefficient to metrics
a lot of regression algorithm use this metric
add it to the set of metrics
python code
def PCC(ground_truth, predictions): """ Evaluates the Pearson Correlation Coefficient. Inputs are numpy arrays. Corr = Cov(GT, Est)/(std(GT)std(Est)) """ return np.corrcoef(ground_truth, predictions)[0, 1] def CCC(ground_truth, predictions): """ Evaluates the Concordance Correlation Coefficient. Inputs are numpy arrays. """ mean_pred = np.mean(predictions) mean_gt = np.mean(ground_truth) std_pred = np.std(predictions) std_gt = np.std(ground_truth) pearson = PCC(ground_truth, predictions) return 2.0*pearson*std_pred*std_gt/(std_pred**2+std_gt**2+(mean_pred-mean_gt)**2)
The text was updated successfully, but these errors were encountered:
Hi! thanks for your contribution!, great first issue!
Sorry, something went wrong.
Thank you !!
Successfully merging a pull request may close this issue.
🚀 Feature
Add Concordance Correlation Coefficient to metrics
Motivation
a lot of regression algorithm use this metric
Pitch
add it to the set of metrics
Additional context
python code
The text was updated successfully, but these errors were encountered: