Skip to content

Commit 2c8e989

Browse files
committed
Update evaluator.py
1 parent 65118b5 commit 2c8e989

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/llm_prompt_optimization/evaluator.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ def evaluate_prompt(prompt, dataset, config, num_samples):
271271
correct += 1
272272

273273
total += 1
274+
continue # Skip the general case to avoid double counting
274275

275276
elif is_emotion:
276277
# For emotion classification (0-5)

0 commit comments

Comments
 (0)