Skip to content

Commit

Permalink
Refactor dimension correlation calculation in annotation_vs_evaluator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
XuhuiZhou committed Jan 6, 2024
1 parent ba8620c commit 2b0c70a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions annotation/annotation_vs_evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ def get_dimension_correlation(dimension: str) -> dict[str, float]:
human_rewards = average_human_rewards(annotation_list)
human_rewards_list.append(
(
float(human_rewards[0][1][dimension]), # type: ignore
float(human_rewards[1][1][dimension]), # type: ignore
float(human_rewards[0][1][dimension]),
float(human_rewards[1][1][dimension]),
)
)
dimension_scores_agent1 = [human_rewards[0] for human_rewards in human_rewards_list]
Expand Down

0 comments on commit 2b0c70a

Please sign in to comment.