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

Look at adding RMSD as a metric. #125

Closed
wants to merge 3 commits into from
Closed

Look at adding RMSD as a metric. #125

wants to merge 3 commits into from

Conversation

CompRhys
Copy link
Collaborator

For the forcefield methods we can also report the RMSD of the relaxed structure to the final structure as a metric. This would require us to store the final structures somewhere which may necessitate LFS.

@janosh janosh added analysis New model analysis mlff Concerning machine learning force fields labels Aug 22, 2024
@DanielYang59
Copy link

DanielYang59 commented Sep 6, 2024

Hi @CompRhys sorry for the late response, just remove fmt (now value_fmt) and cbar_fmt (now cbar_value_fmt) and the default settings would work.

 ax_mp_cnt = pmv.ptable_heatmap(  # matplotlib version looks better for SI 
     elem_counts, 
-    fmt=lambda x, _: si_fmt(x, ".0f"),  
-    cbar_fmt=lambda x, _: si_fmt(x, ".0f"),  
     zero_color="#efefef", 
     cbar_title=f"{dataset.upper()} Element Count", 
     log=(log := SymLogNorm(linthresh=100)), 
 ) 

I got the following (updated):

mp-element-counts-by-composition-symlog.pdf
mp-element-counts-by-occurrence-symlog.pdf
wbm-element-counts-by-composition-symlog.pdf
wbm-element-counts-by-occurrence-symlog.pdf

We removed support of value_fmt as a Callable during a previous refactor, but I would be happy to discuss this if there're use cases where a Callable is necessary (si_fmt for example).

Let me know if there are more issues.

@DanielYang59
Copy link

DanielYang59 commented Sep 6, 2024

Quote from Janosh:

if those custom kwargs fix the issue, we should make those values the new defaults.

Turns out the default for ptable_heatmap is good, i.e. simply removing both fmt (now value_fmt) and cbar_fmt(now cbar_label_fmt) args would generate proper quality plots (PDFs in above comment updated).

@janosh
Copy link
Owner

janosh commented Sep 9, 2024

Turns out the default for ptable_heatmap is good

thanks for pointing that out @DanielYang59! fixed in c1f34da

@DanielYang59
Copy link

No problem!

@CompRhys
Copy link
Collaborator Author

CompRhys commented Nov 3, 2024

Closing in favour of #152

@CompRhys CompRhys closed this Nov 3, 2024
@janosh janosh deleted the rmsd-analysis branch November 8, 2024 01:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
analysis New model analysis mlff Concerning machine learning force fields
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants