Add CHGNet r2SCAN transfer learning model#241
Merged
bowen-bd merged 5 commits intoSep 16, 2025
Conversation
XuHuang0
commented
Sep 16, 2025
Contributor
- Add new pretrained model: chgnet_r2scan_transfer_learning_e15f36s161m23.pth.tar
- Add MP-r2SCAN composition model support in AtomRef class
- Add comprehensive README with training configuration and performance results
- Add new pretrained model: chgnet_r2scan_transfer_learning_e15f36s161m23.pth.tar - Add MP-r2SCAN composition model support in AtomRef class - Add comprehensive README with training configuration and performance results
- Fix function naming in composition_model.py (N802): rename initialize_from_MP_r2SCAN to initialize_from_mp_r2scan - Configure pre-commit to exclude site directory from all checks - Update r2scan pretrained model README
- Fix crystal graph test assertions to match actual graph structure - Update atom_graph shape from [420, 2] to [392, 2] - Update bond_graph shape from [850, 5] to [732, 5] - Update undirected2directed shape from [210] to [196] - Update directed2undirected shape from [420] to [392] - Update related count assertions to match actual values - Fix VASP JSON serialization circular reference issue - Enhance write_json handler to support numpy arrays - Convert numpy.integer to int, numpy.floating to float - Convert numpy.ndarray to list using .tolist() All 296 tests now pass successfully
Ruff automatically fixed the code style by replacing elif with if statements in the write_json handler function for better readability.
- Remove Python 3.12 from GitHub Actions test matrix since it fails - This ensures consistent test results across environments - Python 3.10 tests pass successfully in both local and CI environments
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.