Skip to content

Commit

Permalink
Balanced sampler again
Browse files Browse the repository at this point in the history
  • Loading branch information
norabelrose committed Apr 18, 2023
1 parent bdbd7ce commit 9909466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elk/extraction/prompt_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def load_prompts(
extra_cols = list(assert_type(Features, ds.features))
extra_cols.remove(label_column)

for example in BalancedSampler(ds, num_classes):
for example in BalancedSampler(ds, num_classes, label_col=label_column):
yield _convert_to_prompts(
example,
label_column=label_column,
Expand Down

0 comments on commit 9909466

Please sign in to comment.