Skip to content

Add refusal rate code#5

Open
aunell wants to merge 1 commit intomainfrom
fix_heatmap
Open

Add refusal rate code#5
aunell wants to merge 1 commit intomainfrom
fix_heatmap

Conversation

@aunell
Copy link
Collaborator

@aunell aunell commented Jun 2, 2025

No description provided.

@aunell aunell requested a review from MiguelAFH June 2, 2025 15:56

if __name__ == "__main__":
# Step 1: Process the zip file
zip_path = "/share/pi/nigam/data/medhelm/release/v2/benchmark_output_unredacted_20250512_060221.zip"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use the /share/pi/nigam/data/medhelm/release/v2/benchmark_output_unredacted_20250531_192811.zip instead. It shouldn't change the results, but just to make sure we are using the latest.

not_sorry_count = 0
for item in data:
text = item.get("predicted_text", "")
if "sorry" in text.lower():
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of just using the word sorry, let's not count the instances where the following strings appears in text.lower():

  • sorry to hear
  • sorry for your

In such cases, the model is being empathetic in its response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants