Skip to content

merge compute_output_stat#3310

Merged
wanghan-iapcm merged 12 commits intodeepmodeling:develfrom
njzjz:refactor-out-stat
Feb 28, 2024
Merged

merge compute_output_stat#3310
wanghan-iapcm merged 12 commits intodeepmodeling:develfrom
njzjz:refactor-out-stat

Conversation

@njzjz
Copy link
Copy Markdown
Member

@njzjz njzjz commented Feb 20, 2024

No description provided.

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>
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 20, 2024

Codecov Report

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

Project coverage is 75.77%. Comparing base (897fcc5) to head (b7dbc8a).

Files Patch % Lines
deepmd/pt/model/task/ener.py 88.88% 1 Missing ⚠️
deepmd/tf/fit/dos.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #3310      +/-   ##
==========================================
- Coverage   75.83%   75.77%   -0.06%     
==========================================
  Files         415      382      -33     
  Lines       34862    30121    -4741     
  Branches     1614      909     -705     
==========================================
- Hits        26437    22824    -3613     
+ Misses       7557     6769     -788     
+ Partials      868      528     -340     

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

@wanghan-iapcm
Copy link
Copy Markdown
Collaborator

I don't know how to compute for dipole and polar - TF has no such method.

I would propose compute the avg (like the atom_bias_e) and std of label. By far we remove the avg, it is also possible to scale the output of the fitting net by the std.

The polar of the TF uses the statistics of the diagonal of the avg.

@wanghan-iapcm
Copy link
Copy Markdown
Collaborator

I realize that the std for each type is not available. We may need to uniformly scale the atomic output based on statistics.

Copy link
Copy Markdown
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.

please check my comments on deepmd/utils/out_stat.py

Comment thread deepmd/utils/data_system.py Outdated
Comment thread deepmd/utils/out_stat.py Outdated
Comment thread deepmd/pt/model/task/ener.py Outdated
Comment thread deepmd/utils/out_stat.py
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>
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>
@njzjz njzjz requested a review from wanghan-iapcm February 28, 2024 06:18
Comment thread source/tests/common/test_out_stat.py Outdated
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
@njzjz njzjz requested a review from wanghan-iapcm February 28, 2024 07:21
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
@wanghan-iapcm wanghan-iapcm added this pull request to the merge queue Feb 28, 2024
Merged via the queue into deepmodeling:devel with commit 3ad57da Feb 28, 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