Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
liamdugan committed Sep 12, 2024
1 parent d44cb60 commit b6f1c8b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions raid/evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ def find_threshold(df, target_fpr, epsilon):
try:
threshold = sum(y_scores) / len(y_scores) # initialize threshold to mean of y_scores
except ZeroDivisionError:
raise ValueError("Predictions are missing outputs for human-written texts in some domains.\n"
raise ValueError(
"Predictions are missing outputs for human-written texts in some domains.\n"
+ "In order to run evaluation, you must include predictions for human-written data in all domains.\n"
+ "To disable this, set per_domain_tuning=False in run_evaluation.") from None
+ "To disable this, set per_domain_tuning=False in run_evaluation."
) from None

# Initialize the list of all found thresholds and FPRs
found_threshold_list = []
Expand Down

0 comments on commit b6f1c8b

Please sign in to comment.