Skip to content

support DPRc + type embedding#2166

Merged
wanghan-iapcm merged 7 commits intodeepmodeling:develfrom
njzjz:dprc-type-embedding
Dec 7, 2022
Merged

support DPRc + type embedding#2166
wanghan-iapcm merged 7 commits intodeepmodeling:develfrom
njzjz:dprc-type-embedding

Conversation

@njzjz
Copy link
Member

@njzjz njzjz commented Dec 6, 2022

This patch supports DPRc + type embedding, including

  1. refactor exclude_types + type_one_side. Considering exclude_types is equivalent to $\forall i,j \in \text{exclude types}, \frac{\partial{E}}{\partial{r_{ij}}}=0$, a mask is created to apply to the environmental matrix, which is faster than the previous implementation in support type_one_side along with exclude_types #1423.
  2. implement atom_ener + type embedding.

njzjz added 5 commits December 5, 2022 23:35
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
@github-actions github-actions bot added the Python label Dec 6, 2022
@codecov-commenter
Copy link

codecov-commenter commented Dec 6, 2022

Codecov Report

Base: 74.39% // Head: 74.45% // Increases project coverage by +0.06% 🎉

Coverage data is based on head (d141ecb) compared to base (5d9a394).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #2166      +/-   ##
==========================================
+ Coverage   74.39%   74.45%   +0.06%     
==========================================
  Files         201      201              
  Lines       19758    19779      +21     
  Branches     1416     1416              
==========================================
+ Hits        14698    14727      +29     
+ Misses       4170     4162       -8     
  Partials      890      890              
Impacted Files Coverage Δ
deepmd/descriptor/descriptor.py 81.81% <100.00%> (+6.30%) ⬆️
deepmd/descriptor/se_a.py 95.60% <100.00%> (ø)
deepmd/descriptor/se_r.py 96.53% <100.00%> (+3.03%) ⬆️
deepmd/fit/ener.py 89.74% <100.00%> (+0.45%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

njzjz added 2 commits December 6, 2022 21:17
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
@wanghan-iapcm wanghan-iapcm merged commit 9e13776 into deepmodeling:devel Dec 7, 2022
mingzhong15 pushed a commit to mingzhong15/deepmd-kit that referenced this pull request Jan 15, 2023
This patch supports DPRc + type embedding, including
1. refactor `exclude_types` + `type_one_side`. Considering
`exclude_types` is equivalent to $\forall i,j \in \text{exclude types},
\frac{\partial{E}}{\partial{r_{ij}}}=0$, a mask is created to apply to
the environmental matrix, which is faster than the previous
implementation in deepmodeling#1423.
2. implement `atom_ener` + type embedding.

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
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