fix: grader early return also strictly within (0, 1)
Browse files6 unmodified lines789101112136 unmodified linesdef grade_episode(total_reward: float, steps: int, num_sensors: int = 5) -> float:"""Normalize a single episode's total reward into a [0.0, 1.0] score."""if steps <= 0:return 0.0max_reward_per_step = num_sensors * 2.0best = steps * max_reward_per_stepworst = steps * -2.06 unmodified lines789101112136 unmodified linesdef grade_episode(total_reward: float, steps: int, num_sensors: int = 5) -> float:"""Normalize a single episode's total reward into a [0.0, 1.0] score."""if steps <= 0:return 0.0001max_reward_per_step = num_sensors * 2.0best = steps * max_reward_per_stepworst = steps * -2.0
tasks/grader.py+1-1