Skip to content

Commit

Permalink
use smallest split
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyasMoutawwakil committed May 22, 2024
1 parent e0f5812 commit d50e1f9
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/utils/test_task_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,10 @@ def _test_load_dataset(
)
dataset_with_all_columns = None
if default_dataset:
dataset = task_processor.load_default_dataset(only_keep_necessary_columns=only_keep_necessary_columns)
dataset = task_processor.load_default_dataset(
only_keep_necessary_columns=only_keep_necessary_columns,
load_smallest_split=True,
)
if only_keep_necessary_columns:
dataset_with_all_columns = task_processor.load_default_dataset()
else:
Expand All @@ -157,11 +160,15 @@ def _test_load_dataset(
path,
data_keys=data_keys,
only_keep_necessary_columns=only_keep_necessary_columns,
load_smallest_split=True,
**load_dataset_kwargs,
)
if only_keep_necessary_columns:
dataset_with_all_columns = task_processor.load_dataset(
path, data_keys=data_keys, **load_dataset_kwargs
path,
data_keys=data_keys,
load_smallest_split=True,
**load_dataset_kwargs,
)

# We only check if the column names of the dataset with the not necessary columns removed are a strict subset
Expand Down

0 comments on commit d50e1f9

Please sign in to comment.