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

print NaN loss when labeled data is not found #3047

Merged
merged 2 commits into from
Dec 12, 2023

Conversation

njzjz
Copy link
Member

@njzjz njzjz commented Dec 9, 2023

Currently, when loss is defined and the labeled data is not found, lcurve.out shows wrong RMSE (assuming data is all zero). In this case, printing NaN is better.

Currently, when loss is defined and the labeled data is not found, `lcurve.out` shows wrong RMSE (assuming data is all zero).
In this case, printing NaN is better.

Signed-off-by: Jinzhe Zeng <[email protected]>
@github-actions github-actions bot added the Python label Dec 9, 2023
@njzjz njzjz requested a review from wanghan-iapcm December 9, 2023 00:06
Copy link

codecov bot commented Dec 9, 2023

Codecov Report

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

Comparison is base (0547940) 75.73% compared to head (18c2ed1) 72.69%.
Report is 3 commits behind head on devel.

Files Patch % Lines
deepmd/loss/dos.py 0.00% 4 Missing ⚠️
deepmd/loss/ener.py 69.23% 4 Missing ⚠️
deepmd/loss/tensor.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##            devel    #3047      +/-   ##
==========================================
- Coverage   75.73%   72.69%   -3.05%     
==========================================
  Files         245      245              
  Lines       24685    24782      +97     
  Branches     1591     1593       +2     
==========================================
- Hits        18696    18015     -681     
- Misses       5054     5834     +780     
+ Partials      935      933       -2     

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

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.

add a comment explaining the situation at the very first line of lcurve.out?

Signed-off-by: Jinzhe Zeng <[email protected]>
@wanghan-iapcm wanghan-iapcm merged commit ddfa781 into deepmodeling:devel Dec 12, 2023
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants