Closed njzjz closed 1 week ago
[!TIP]
AI model upgrade
## `gpt-4o` model for reviews and chat is now live OpenAI claims that this model is better at understanding and generating code than the previous models. Please join our [Discord Community](https://discord.com/invite/GsXnASn26c) to provide any feedback or to report any issues.
source/tests/test_model_se_a_ebd_v2.py (3)
`142-142`: **Verify the updated reference value for `refe`.** Ensure that the new value `[6.100037044296185e-01]` is correct and consistent with the expected results. --- `144-161`: **Verify the updated reference values for `reff`.** Ensure that the new values are correct and consistent with the expected results. --- `164-172`: **Verify the updated reference values for `refv`.** Ensure that the new values are correct and consistent with the expected results.source/tests/test_pairwise_dprc.py (2)
`522-522`: **Verify the updated expected value for `e[0]`.** Ensure that the new value `4.82969` is correct and consistent with the expected results. --- `523-523`: **Verify the updated expected value for `f[0, 0]`.** Ensure that the new value `-0.104339` is correct and consistent with the expected results.deepmd/descriptor/se_a.py (3)
`1034-1035`: **LGTM! Conditional increment of the seed.** The seed is incremented correctly based on the conditions. --- Line range hint `1047-1067`: **LGTM! Correct parameters passed to `filter_lower_R42GR`.** The function call includes the necessary parameters including the newly added `self.seed`, `self.seed_shift`, and `self.uniform_seed`. --- `1065-1066`: **LGTM! Conditional increment of the seed.** The seed is incremented correctly based on the conditions.deepmd/descriptor/se_atten.py (7)
`962-963`: **Conditional seed increment.** The increment of `self.seed` ensures that each layer has a different seed when `self.uniform_seed` is `False` and `self.seed` is not `None`. --- `977-978`: **Conditional seed increment.** The increment of `self.seed` ensures that each layer has a different seed when `self.uniform_seed` is `False` and `self.seed` is not `None`. --- `992-993`: **Conditional seed increment.** The increment of `self.seed` ensures that each layer has a different seed when `self.uniform_seed` is `False` and `self.seed` is not `None`. --- `1026-1027`: **Conditional seed increment.** The increment of `self.seed` ensures that each layer has a different seed when `self.uniform_seed` is `False` and `self.seed` is not `None`. --- `1091-1092`: **Conditional seed increment.** The increment of `self.seed` ensures that each filter has a different seed when `self.uniform_seed` is `False` and `self.seed` is not `None`. --- `1132-1133`: **Conditional seed increment.** The increment of `self.seed` ensures that each filter has a different seed when `self.uniform_seed` is `False` and `self.seed` is not `None`. --- `1191-1192`: **Conditional seed increment.** The increment of `self.seed` ensures that each filter has a different seed when `self.uniform_seed` is `False` and `self.seed` is not `None`.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 81.51%. Comparing base (
a85d58f
) to head (e4ae74b
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Summary by CodeRabbit
Bug Fixes
self.seed
conditionally in descriptor modules.Tests
refe
,reff
, andrefv
with new reference values.test_model_ener
method for better accuracy.These changes ensure more reliable descriptor computations and improved test accuracy.
(cherry picked from commit 0c472d1596ae24b5b548ae6ae38688dbab911de5)