Skip to content

Commit

Permalink
chore: Add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
saattrupdan committed Apr 23, 2024
1 parent 1551651 commit 16b2627
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/foqa/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ def build_dataset(config: DictConfig) -> None:
assert isinstance(dataset, Dataset)

num_samples = min(config.num_samples, len(dataset))
if num_samples < config.num_samples:
logger.info(f"Reduced number of samples to the maximal {num_samples:,}.")
dataset = dataset.select(range(num_samples))

records_path = Path(config.dirs.data) / config.dirs.raw / "records.jsonl"
Expand Down

0 comments on commit 16b2627

Please sign in to comment.