Spaces:
Sleeping
Sleeping
Normalize remaining score fields into open interval
Browse filesFiles changed (2)
944 unmodified lines945946947948949950951952953954955956957958944 unmodified linesif final_rubric_reward is not Noneelse (task_step_rewards[-1] if task_step_rewards else 0.0))all_results[task_id] = {"final_reward": final_reward,"step_count": step_num,}emit_log("END",final_reward=round(final_reward, 4),score=round(clamp_reported_score(final_reward), 4),step_count=step_num,task_id=task_id,task_name=task["name"],944 unmodified lines945946947948949950951952953954955956957958959944 unmodified linesif final_rubric_reward is not Noneelse (task_step_rewards[-1] if task_step_rewards else 0.0))reported_score = clamp_reported_score(final_reward)all_results[task_id] = {"final_reward": final_reward,"step_count": step_num,}emit_log("END",final_reward=round(reported_score, 4),score=round(reported_score, 4),step_count=step_num,task_id=task_id,task_name=task["name"],
753 unmodified lines75475575675775875976076176276376476576612 unmodified lines779780781782783784785753 unmodified lines)self._state.last_tool_result = tool_resultinvestigation_reward = USEFUL_INVESTIGATION_REWARD if useful_investigation else 0.0self._state.last_step_reward = investigation_rewardself._state.reward = investigation_rewardself._state.done = Falseself._state.investigation_penalty_applied = self._compute_episode_penalty()progress = self._tool_progress_for_ticket(current_ticket)reward_components = self._build_reward_components(ticket_score=0.0,field_breakdown={},shaped_step_reward=investigation_reward,reward_kind="investigation",12 unmodified linesself._build_history_entry(current_ticket,predicted=action.model_dump(exclude_none=True),score=0.0,breakdown={},queue_position=idx + 1,reward=investigation_reward,753 unmodified lines75475575675775875976076176276376476576676712 unmodified lines780781782783784785786753 unmodified lines)self._state.last_tool_result = tool_resultinvestigation_reward = USEFUL_INVESTIGATION_REWARD if useful_investigation else 0.0investigation_score = clamp_open_unit_interval(0.0)self._state.last_step_reward = investigation_rewardself._state.reward = investigation_rewardself._state.done = Falseself._state.investigation_penalty_applied = self._compute_episode_penalty()progress = self._tool_progress_for_ticket(current_ticket)reward_components = self._build_reward_components(ticket_score=investigation_score,field_breakdown={},shaped_step_reward=investigation_reward,reward_kind="investigation",12 unmodified linesself._build_history_entry(current_ticket,predicted=action.model_dump(exclude_none=True),score=investigation_score,breakdown={},queue_position=idx + 1,reward=investigation_reward,
inference.py+3-2
server/environment.py+3-2