-
Notifications
You must be signed in to change notification settings - Fork 527
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
fix: deeptensor output, add dipole stat UT #3948
Conversation
WalkthroughThe recent changes involve modifications to the return type of the Changes
Sequence Diagram(s)sequenceDiagram
participant Tester as Test Suite
participant DT as DeepTensor
participant ModelConfig as Model Configuration
rect rgb(191, 223, 255)
note over Tester, DT: Interaction for evaluating models
Tester ->> DT: Call eval()
DT -->> Tester: Return tuple of np.ndarray
end
rect rgb(245, 224, 177)
note over Tester, ModelConfig: Interaction for configuring models in tests
Tester ->> ModelConfig: Load model_dipole configuration
ModelConfig -->> Tester: Configurations returned
end
rect rgb(255, 191, 191)
note over Tester: Testing with new data requirements
Tester ->> Tester: Test with global_dipole
Tester ->> Tester: Adjust energy calculations
end
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## devel #3948 +/- ##
===========================================
- Coverage 82.84% 34.83% -48.02%
===========================================
Files 520 520
Lines 50827 50795 -32
Branches 3015 3015
===========================================
- Hits 42108 17692 -24416
- Misses 7785 32495 +24710
+ Partials 934 608 -326 ☔ View full report in Codecov by Sentry. |
I may close this PR if ndarry is the expected output type. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please explain the reason of using Tuple[np.ndarray]
instead of np.ndarray
as returned type of DeepTensor
?
It seems the other DeepModels all return a tuple object, I thought they should be consistent. When adding the new UT, DeepDipole eval needs special handling if a ndarray is returned. Although the UT is not as important, since dipole model does not apply bias, just want to check the changes made in #3945. |
Summary by CodeRabbit
New Features
model_dipole
for enhanced dipole model configurations.Improvements
eval
method to ensure consistency and clarity in the output.Testing