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

Add metric computation functions for surrogate performance evaluation #698

Merged
merged 6 commits into from
Dec 19, 2024

Conversation

Antoine-Averland
Copy link
Contributor

No description provided.

@@ -63,7 +63,7 @@ def standardization(X, y):
return X, y, X_offset, y_mean, X_scale, y_std


def compute_rms_error(sm, xe=None, ye=None, kx=None):
def compute_relative_error(sm, xe=None, ye=None, kx=None):
Copy link
Member

Choose a reason for hiding this comment

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

Yes this is a relative error not an RMSE

return pva


def compute_rmse_error(sm, xe, ye):
Copy link
Member

Choose a reason for hiding this comment

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

This function name reads like "compute root mean squared error error". I suggest to remove "_error" from the functions names: compute_pva, compute_rmse and compute_q2

@relf relf changed the title Add error calculation functions and tests Add metric computation functions for surrogate performance evaluation Dec 19, 2024
@relf relf merged commit 223cec8 into SMTorg:master Dec 19, 2024
11 checks passed
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