Skip to content

Conversation

@anyangml
Copy link
Collaborator

@anyangml anyangml commented Mar 12, 2024

This PR refactors the serialization/ deserialization in LinearEnergyAtomicModel using the plugin mechanism introduced in #3438 .

@anyangml anyangml requested review from njzjz and wanghan-iapcm March 12, 2024 03:38
@codecov
Copy link

codecov bot commented Mar 12, 2024

Codecov Report

Attention: Patch coverage is 86.66667% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 77.34%. Comparing base (36fdf53) to head (38c1d08).

Files Patch % Lines
deepmd/dpmodel/atomic_model/linear_atomic_model.py 83.33% 2 Missing ⚠️
...eepmd/pt/model/atomic_model/linear_atomic_model.py 85.71% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #3451      +/-   ##
==========================================
- Coverage   77.34%   77.34%   -0.01%     
==========================================
  Files         428      428              
  Lines       37001    37005       +4     
  Branches     1621     1621              
==========================================
+ Hits        28619    28621       +2     
- Misses       7514     7516       +2     
  Partials      868      868              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@anyangml anyangml self-assigned this Mar 12, 2024
@anyangml anyangml requested a review from wanghan-iapcm March 12, 2024 10:18
Copy link
Collaborator

@wanghan-iapcm wanghan-iapcm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR provides a default weight computing method for the linear model (average over all sub-models) to make it instantiable. @njzjz please check if it a good design

@anyangml anyangml requested a review from njzjz March 13, 2024 01:12
@anyangml anyangml requested a review from njzjz March 13, 2024 03:06
@njzjz njzjz enabled auto-merge March 13, 2024 03:18
@njzjz njzjz added this pull request to the merge queue Mar 13, 2024
Merged via the queue into deepmodeling:devel with commit dda4bc6 Mar 13, 2024
@njzjz njzjz mentioned this pull request Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants