Merge pull request #185 from Owen-Qin/fix_ceval

fix bug for ceval
main
Yang An 1 year ago committed by GitHub
commit 677180a653
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -80,7 +80,7 @@ def eval_subject(
score = [] score = []
few_shot_prompt = generate_few_shot_prompt( few_shot_prompt = generate_few_shot_prompt(
k, subject_name, dev_df) if few_shot else [] k, subject_name, dev_df) if few_shot else ''
all_probs = {'prob_A': [], 'prob_B': [], 'prob_C': [], 'prob_D': []} all_probs = {'prob_A': [], 'prob_B': [], 'prob_C': [], 'prob_D': []}
if args.debug: print(f"few_shot_prompt: {few_shot_prompt}") if args.debug: print(f"few_shot_prompt: {few_shot_prompt}")

Loading…
Cancel
Save