Skip to content

Commit

Permalink
Fix not enclosed function (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljvmiranda921 authored Oct 7, 2024
1 parent 9c7c4f6 commit 5d51a6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions analysis/plot_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def plot_eng_drop_line(
output_path: Path,
figsize: Optional[tuple[int, int]] = (18, 5),
top_n: Optional[int] = None,

):
from scipy.stats import pearsonr, spearmanr

df = pd.read_csv(input_path)
Expand All @@ -114,7 +114,7 @@ def plot_eng_drop_line(
logging.info(f"Showing top {top_n}")
data = data.head(top_n)
model_types = model_types[:top_n]

fig, ax = plt.subplots(figsize=figsize)
mrewardbench_scores = data["Avg_Multilingual"]
rewardbench_scores = data["eng_Latn"]
Expand Down

0 comments on commit 5d51a6e

Please sign in to comment.