Skip to content

Commit

Permalink
Make load_prompts actually use label_column and num_classes args
Browse files Browse the repository at this point in the history
  • Loading branch information
norabelrose committed Apr 18, 2023
1 parent 54f5ed3 commit e1b1834
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions elk/extraction/prompt_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,8 @@ def load_prompts(
if rank == 0:
print(f"Using {num_variants} variants of each prompt")

label_column = infer_label_column(ds.features)
num_classes = infer_num_classes(ds.features[label_column])
label_column = label_column or infer_label_column(ds.features)
num_classes = num_classes or infer_num_classes(ds.features[label_column])
rng = Random(seed)

if num_shots > 0:
Expand Down

0 comments on commit e1b1834

Please sign in to comment.