-
Notifications
You must be signed in to change notification settings - Fork 9
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
Make sure that supercell_matrices of single-atom-displaced and rattled supercells are the same per default #258
Merged
Merged
Changes from 8 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
3022c3b
increase M3GNET RMSE tolereance because of fluctuations
QuantumChemist a01c5a6
prettify GAP parameters representation and remove GAP related things …
QuantumChemist f3d35a0
rearrange file entires to make it look better, added user-defined for…
QuantumChemist 1b7e6c0
fix unit test
QuantumChemist 3754c8c
fix unit test
QuantumChemist d76dc84
small format fix
QuantumChemist 4dc423e
fix unit test
QuantumChemist c02bfc3
removed a comment
QuantumChemist 1b95862
decrease default max_length for rattled supercells
QuantumChemist 8d0c3a8
Merge branch 'autoatml:main' into main
QuantumChemist 0337f46
reducing max_length default a bit
QuantumChemist e51db69
Merge branch 'main' of github.com:QuantumChemist/autoplex
QuantumChemist eacd697
added missing doctsring
QuantumChemist c89312c
set max_length to 20
QuantumChemist a508a53
set max_length to 20
QuantumChemist b8ae70c
add fallback to single-atom-dsipl- supercells
QuantumChemist 10ac1e5
minor changes in file format
QuantumChemist bc5ca78
supercell_matrix is only determined once by reduce_supercell_size_job
QuantumChemist cb4c995
filter out supercell_matrix key to prevent problems with mismacthing …
QuantumChemist 9f02c13
filter out supercell_matrix mpid key as mpids are not used here
QuantumChemist d60d9fc
adjust job number and remove print
QuantumChemist 75f2668
adjust defaults
QuantumChemist 6da2b0f
fix unit tests
QuantumChemist 14a9eb5
fix unit tests
QuantumChemist 776384d
putting the phonon GAP defaults to SI settings
QuantumChemist 6b3ceb2
fix unit test
QuantumChemist 125eec1
fix unit test
QuantumChemist a0f3d83
fix unit test
QuantumChemist f35ef28
added user info about supercell settings
QuantumChemist bbae8f5
Merge branch 'autoatml:main' into main
QuantumChemist bc7dec9
addressing Yb's comments
QuantumChemist 5b35adf
adjust unit test
QuantumChemist a84458d
fix unit test
QuantumChemist File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -530,7 +530,7 @@ def test_complete_dft_vs_ml_benchmark_workflow_gap( | |
|
||
# check if soap_default_dict is correctly constructed from | ||
# n_sparse and delta values in mlip_phonon_default json file | ||
expected_soap_dict = "{'f=0.1': {'n_sparse': 6000, 'delta': 0.5}}" | ||
expected_soap_dict = "atom-wise f=0.1: n_sparse = 6000, SOAP delta = 0.5" | ||
results_files = glob.glob('job*/results_LiCl.txt') | ||
|
||
for file_path in results_files: | ||
|
@@ -584,7 +584,7 @@ def test_complete_dft_vs_ml_benchmark_workflow_m3gnet( | |
assert complete_workflow_m3gnet.jobs[4].name == "complete_benchmark_mp-22905" | ||
assert responses[complete_workflow_m3gnet.jobs[-1].output.uuid][1].output[0][0][ | ||
"benchmark_phonon_rmse"] == pytest.approx( | ||
5.2622804443539355, abs=1.0 # bad fit data | ||
5.2622804443539355, abs=3.0 # bad fit data, fluctuates between 4 and 7 | ||
) | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does this slight fluctuation result from the fitting, right? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, we would need more fit data, but then the unit tests would also take longer. |
||
|
||
|
@@ -996,7 +996,7 @@ def test_complete_dft_vs_ml_benchmark_workflow_with_sigma_regularization( | |
assert reg_specific_file_exists | ||
|
||
# check if soap_default_dict is correctly constructed from n_sparse and delta values in user fit parameter input | ||
expected_soap_dict = "{'f=0.1': {'delta': 3.0, 'n_sparse': 8000}}" | ||
expected_soap_dict = "atom-wise f=0.1: n_sparse = 8000, SOAP delta = 3.0" | ||
|
||
results_files = glob.glob('job*/test_results_LiCl.txt') | ||
for file_path in results_files: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
Potential Structure MPID Displacement (Å) RMSE (THz) Hyperparameters (atom-wise f, n_sparse, SOAP delta) Database type imagmodes(pot) imagmodes(dft) | ||
GAP LiCl mp-22905 0.01 0.87425 {'f=0.1': None} False False | ||
GAP LiCl mp-22905 0.01 0.63839 {'f=0.1': None} False False | ||
GAP LiCl mp-22905 0.01 0.55506 {'f=0.1': None} _wo_sigma False False | ||
GAP LiCl mp-22905 0.01 0.43216 {'f=0.1': None} _phonon False False | ||
GAP LiCl mp-22905 0.01 0.54584 {'f=0.1': None} _rand_struc False False | ||
GAP LiCl mp-22905 0.01 0.43216 {'f=0.1': {'n_sparse': 3000, 'delta': 1.0}} _rand_struc False False | ||
GAP LiCl mp-22905 0.01 0.36478 {'f=0.1': {'n_sparse': 5000, 'delta': 1.0}} _rand_struc False False | ||
GAP LiCl mp-22905 0.01 0.38100 {'f=0.1': {'n_sparse': 5000, 'delta': 1.0}} _rand_struc False False | ||
Potential Structure MPID Displacement (Å) RMSE (THz) imagmodes(pot) imagmodes(dft) Database type (Hyper-)Parameters | ||
GAP LiCl mp-22905 0.01 0.87425 False False full atom-wise f=0.1: n_sparse = 3000, SOAP delta = 1.0 | ||
GAP LiCl mp-22905 0.01 0.63839 False False full atom-wise f=0.1: n_sparse = 4000, SOAP delta = 1.0 | ||
GAP LiCl mp-22905 0.01 0.55506 False False _wo_sigma atom-wise f=0.1: n_sparse = 3000, SOAP delta = 1.0 | ||
GAP LiCl mp-22905 0.01 0.43216 False False _phonon atom-wise f=0.1: n_sparse = 3000, SOAP delta = 1.0 | ||
GAP LiCl mp-22905 0.01 0.54584 False False _rand_struc atom-wise f=0.1: n_sparse = 3000, SOAP delta = 1.0 | ||
GAP LiCl mp-22905 0.01 0.43216 False False _rand_struc atom-wise f=0.1: n_sparse = 3000, SOAP delta = 1.0 | ||
GAP LiCl mp-22905 0.01 0.36478 False False _rand_struc atom-wise f=0.1: n_sparse = 3000, SOAP delta = 1.0 | ||
GAP LiCl mp-22905 0.01 0.38100 False False _rand_struc atom-wise f=0.1: n_sparse = 4000, SOAP delta = 1.0 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the docstrings of
CompleteDFTvsMLBenchmarkWorkflow
, should we unify the formatting since some start with lowercase letters while others start with uppercase letters?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should indeed agree on a convention here. This is something that I can fix in the documentation pull-request.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good.