Closed zjgemi closed 2 months ago
dpgen2/exploration/report/report_adaptive_lower.py (15)
Line range hint `1-121`: **LGTM!** The `__init__` function is correctly implemented and initializes the attributes appropriately. --- Line range hint `123-143`: **LGTM!** The `doc` function correctly generates the class documentation. --- Line range hint `145-205`: **LGTM!** The `args` function correctly returns the list of `Argument` objects. --- Line range hint `207-217`: **LGTM!** The `clear` function correctly resets the state of the object. --- `242-242`: **LGTM!** The change from `self.accur = self.accur.union(add_accur)` to `self.accur.update(add_accur)` is an optimization that improves performance by updating the existing set in-place instead of creating a new set. --- Line range hint `280-315`: **LGTM!** The `_record_one_traj` function correctly processes a single trajectory and updates the state of the object. --- Line range hint `317-326`: **LGTM!** The `_sequence_conv` function correctly checks if a sequence has converged based on the convergence tolerance. --- Line range hint `328-343`: **LGTM!** The `converged` function correctly checks if the exploration has converged based on the convergence criteria. --- Line range hint `345-349`: **LGTM!** The `failed_ratio` function correctly calculates the ratio of failed frames. --- Line range hint `351-355`: **LGTM!** The `accurate_ratio` function correctly calculates the ratio of accurate frames. --- Line range hint `357-361`: **LGTM!** The `candidate_ratio` function correctly calculates the ratio of candidate frames. --- Line range hint `363-373`: **LGTM!** The `get_candidate_ids` function correctly returns a list of candidate frame IDs for each trajectory. --- Line range hint `375-386`: **LGTM!** The `_get_candidates` function correctly selects candidate frames based on the specified selection method. --- Line range hint `388-413`: **LGTM!** The `_get_candidates_uniform` function correctly selects candidate frames uniformly. --- Line range hint `415-443`: **LGTM!** The `_get_candidates_inv_pop_f` function correctly selects candidate frames based on the inverse population in force model deviation statistics.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 83.65%. Comparing base (
a8ca7f0
) to head (9c6d487
). Report is 1 commits behind head on master.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
set.union
becomes slow significantly when set size large than 100k. Test within comparison to
Summary by CodeRabbit