Closed njzjz closed 1 month ago
source/tests/tf/test_loss_gf.py (2)
`8-10`: LGTM! The import of `DataRequirementItem` aligns with the refactoring to handle data requirements locally. --- `32-86`: Excellent addition of `test_label_requirements`. This test method effectively checks the correctness of the `label_requirement` property, ensuring it meets the new data handling requirements.source/tests/tf/test_model_se_a_aparam.py (2)
`19-21`: LGTM! The import of `DataRequirementItem` is necessary for the new data requirement handling. --- `172-176`: Excellent addition of a test to verify the `input_requirement` for `aparam`. This ensures that the model's data requirements are correctly implemented and tested.source/tests/tf/test_model_se_a_fparam.py (2)
`19-21`: LGTM! The import of `DataRequirementItem` is necessary for the new data requirement handling. --- `173-180`: Excellent addition of a test to verify the `input_requirement` for `fparam`. This ensures that the model's data requirements are correctly implemented and tested.source/tests/tf/test_model_se_a.py (1)
`268-270`: Good addition of a test to verify the `input_requirement` for the model. This ensures that the model's data requirements are correctly implemented and tested, even if it expects no specific requirements.deepmd/utils/data.py (1)
`796-797`: Review the representation method `__repr__`. The `__repr__` method provides a clear and concise string representation of the object, which is useful for debugging and logging.
Attention: Patch coverage is 75.53957%
with 34 lines
in your changes are missing coverage. Please review.
Project coverage is 82.56%. Comparing base (
81b5949
) to head (126295b
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Fix #3522. Fix #3540.
Summary by CodeRabbit
New Features
input_requirement
across various models to streamline data requirements handling.label_requirement
for loss classes to specify data label requirements.Bug Fixes
Tests
input_requirement
andlabel_requirement
properties.