Skip to content
New issue

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

Update R^2 method in eval_metrics #1211

Merged
merged 1 commit into from
Mar 19, 2024
Merged

Update R^2 method in eval_metrics #1211

merged 1 commit into from
Mar 19, 2024

Conversation

robbibt
Copy link
Member

@robbibt robbibt commented Mar 18, 2024

Proposed changes

The current R^2 coefficient of determination method in eval_metrics produces confusing and unpredictable results. This PR simplifies this by simply squaring the linear regression correlation co-efficient, as recommended by the stats.linregress function:
https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.linregress.html
image

Copy link
Collaborator

@vnewey vnewey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea

@vnewey vnewey merged commit 8f78d5d into develop Mar 19, 2024
1 check passed
@vnewey vnewey deleted the validation_update branch March 19, 2024 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants