-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
MLBuilder
and MLDoc
to record machine learning property predi…
…ctions (#806) * add pydantic models MLIPElasticityDoc, MLIPPhononDoc, MLIPEosDoc, MLIPRelaxationDoc for interatomic potential predictions * add class MLIPBuilder runs CHGNet and MEGNet over all structures in the materials store and with every matcalc PropCalc class * wip test_mlip_builder.py * MLIPBuilder add args model: Union[str, "Calculator"] and prop_kwargs: dict = None * update MLIPDoc with provenance just model name and package version for now * merge MLIPElasticityDoc MLIPPhononDoc MLIPEosDoc MLIPRelaxationDoc into MLIPDoc * run MLIPBuilder with chgnet and m3gnet in test_ml_ip_builder * deduplicate test_structures * remove magnetism_test_data fixture just adds verbosity * mv emmet-core/tests/test_structure{,_}metadata.py mv emmet-core/tests/test_molecule{,_}metadata.py * add test_mlip_doc * refactor MLIPDoc.__init__ * rename MLIPBuilder keyword calc_kwargs to model_kwargs * EOS->eos * test only one structure in test_mlip_doc() for speed * mv emmet-core/tests/test_{ml_potential.py,ml.py} and split chgnet and m3gnet into separate test functions * mv emmet-builders/emmet/builders/materials/{ml_potential,ml}.py emmet-core/emmet/core/{ml_potential,ml}.py convert numpy arrays to lists and fix doc str * fix typos compatability->compatibility * MLIPDoc add structure, calculator, version metadata fields * working MLIPDoc tests starting with test_mlip_doc_with_calc_as_(str|model) * setup.cfg add pytest option -p no:warnings set isort known_local_folder=emmet * fix names in MLIPDoc Attributes doc string section * fix MLIPBuilder provenance matcalc version model name model version * test_ml_ip_builder() 1st working version * ThermodynamicProperties.cv add alias heat_capacity * merge both MLIPDoc tests using @pytest.mark.parametrize * MLIPDoc rename field version to matcalc_version * MLIPBuilder add kwarg provenance for extra custom data * test_ml_ip_builder() parametrize model * add matcalc to emmet-core extras_require 'all' * fix test type hint Union[str, "Calculator"] * make all MLIPDoc fields optional * young_modulus add alias youngs_modulus * MLIPDoc inherit from ElasticityDoc add bulk_modulus and shear_modulus pydantic validators * fix emmet-core/tests/test_ml.py * update MLIPDoc doc string with correct elasticity types * map (bulk|shear)_modulus_vrh which matcalc returns to (bulk|shear)_modulus which ElasticityDoc expects * test prop_kwargs keyword of MLIPDoc * Automated dependency upgrades (#827) * update dependencies for emmet-api (ubuntu-latest/py3.10) * update dependencies for emmet-api (ubuntu-latest/py3.11) * update dependencies for emmet-api (ubuntu-latest/py3.8) * update dependencies for emmet-api (ubuntu-latest/py3.9) * update dependencies for emmet-builders (ubuntu-latest/py3.10) * update dependencies for emmet-builders (ubuntu-latest/py3.11) * update dependencies for emmet-builders (ubuntu-latest/py3.8) * update dependencies for emmet-builders (ubuntu-latest/py3.9) * update dependencies for emmet-core (ubuntu-latest/py3.10) * update dependencies for emmet-core (ubuntu-latest/py3.11) * update dependencies for emmet-core (ubuntu-latest/py3.8) * update dependencies for emmet-core (ubuntu-latest/py3.9) --------- Co-authored-by: github-actions <[email protected]> * rename MLIPBuilder to MLBuilder and MLIPDoc to MLDoc * Matcalc dep added to req files * Remove repeat req entry * Bump matcalc --------- Co-authored-by: Patrick Huck <[email protected]> Co-authored-by: github-actions <[email protected]> Co-authored-by: Jason Munro <[email protected]>
- Loading branch information
1 parent
e4bb49f
commit ff4b452
Showing
47 changed files
with
526 additions
and
306 deletions.
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
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
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
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
Oops, something went wrong.