Skip to content

Commit

Permalink
add actual values to chart
Browse files Browse the repository at this point in the history
  • Loading branch information
strickvl committed Aug 8, 2024
1 parent 548699b commit 28b9a9a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions llm-complete-guide/steps/finetune_embeddings.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,13 +372,17 @@ def visualize_results(
label="Finetuned Model",
color="red",
)
for i, v in enumerate(finetuned_values):
ax.text(v + 1, i - height / 2, f"{v:.1f}", va="center")
ax.barh(
[i + height / 2 for i in y],
base_values,
height,
label="Base Model",
color="blue",
)
for i, v in enumerate(base_values):
ax.text(v + 1, i + height / 2, f"{v:.1f}", va="center")

ax.set_xlabel("Scores (%)")
ax.set_title("Evaluation Results")
Expand Down

0 comments on commit 28b9a9a

Please sign in to comment.