Skip to content
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

pt: refactor data stat #3285

Merged
merged 42 commits into from
Feb 18, 2024
Merged

pt: refactor data stat #3285

merged 42 commits into from
Feb 18, 2024

Conversation

njzjz
Copy link
Member

@njzjz njzjz commented Feb 17, 2024

No description provided.

njzjz added 30 commits February 16, 2024 15:34
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Copy link

codecov bot commented Feb 17, 2024

Codecov Report

Attention: 70 lines in your changes are missing coverage. Please review.

Comparison is base (9053caf) 75.06% compared to head (2ad6990) 74.84%.

Files Patch % Lines
deepmd/utils/path.py 63.15% 21 Missing ⚠️
deepmd/utils/env_mat_stat.py 75.43% 14 Missing ⚠️
deepmd/pt/model/descriptor/descriptor.py 42.85% 8 Missing ⚠️
deepmd/pt/entrypoints/main.py 45.45% 6 Missing ⚠️
deepmd/pt/model/descriptor/repformers.py 73.33% 4 Missing ⚠️
deepmd/pt/model/descriptor/se_a.py 80.00% 4 Missing ⚠️
deepmd/pt/model/descriptor/se_atten.py 73.33% 4 Missing ⚠️
deepmd/pt/model/task/ener.py 66.66% 3 Missing ⚠️
deepmd/pt/model/atomic_model/dp_atomic_model.py 77.77% 2 Missing ⚠️
deepmd/pt/utils/env_mat_stat.py 96.96% 2 Missing ⚠️
... and 2 more
Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #3285      +/-   ##
==========================================
- Coverage   75.06%   74.84%   -0.22%     
==========================================
  Files         387      389       +2     
  Lines       33640    33587      -53     
  Branches     1604     1604              
==========================================
- Hits        25251    25139     -112     
- Misses       7528     7587      +59     
  Partials      861      861              

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

Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
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.

It seems that the case of mixed_type, or not distinguish_type is not covered by UTs.

deepmd/pt/utils/env_mat_stat.py Show resolved Hide resolved
deepmd/pt/utils/env_mat_stat.py Outdated Show resolved Hide resolved
source/tests/pt/test_stat.py Outdated Show resolved Hide resolved
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
Signed-off-by: Jinzhe Zeng <[email protected]>
@njzjz
Copy link
Member Author

njzjz commented Feb 18, 2024

It seems that the case of mixed_type, or not distinguish_type is not covered by UTs.

Resolved.

@njzjz njzjz requested a review from wanghan-iapcm February 18, 2024 01:18
Signed-off-by: Jinzhe Zeng <[email protected]>
@wanghan-iapcm wanghan-iapcm added this pull request to the merge queue Feb 18, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 18, 2024
@wanghan-iapcm wanghan-iapcm merged commit c55ceac into deepmodeling:devel Feb 18, 2024
49 checks passed
njzjz added a commit to njzjz/deepmd-kit that referenced this pull request Feb 18, 2024
github-merge-queue bot pushed a commit that referenced this pull request Feb 19, 2024
Resolves
#3285 (comment).

We don't even need to consider whether the data uses mixed type in this
piece of code. The data can be reshaped to the atom level, and type
masks can be used to get an environmental matrix with certain types. No
frame-level things are involved here.

---------

Signed-off-by: Jinzhe Zeng <[email protected]>
@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