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

Avoid recalculating similar metrics #210

Closed
s-scherrer opened this issue Feb 11, 2021 · 1 comment
Closed

Avoid recalculating similar metrics #210

s-scherrer opened this issue Feb 11, 2021 · 1 comment

Comments

@s-scherrer
Copy link
Collaborator

rmsd = df_metrics.rmsd(data)
rmsd_dict = rmsd._asdict()
# calculate MSE
mse, mse_corr, mse_bias, mse_var = df_metrics.mse(data)
mse_dict, mse_corr_dict, mse_bias_dict, mse_var_dict = \
mse._asdict(), mse_corr._asdict(), mse_bias._asdict(), mse_var._asdict()
# calculate RSS
rss = df_metrics.RSS(data)
rss_dict = rss._asdict()

Currently metrics which are very similar and could be converted into each other easily are often recalculated, e.g. in rmsd, RSS and mse in the above example (where rmsd = sqrt(mse) and RSS = n * mse.

@s-scherrer
Copy link
Collaborator Author

Closed via #219

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

No branches or pull requests

1 participant