Skip to content

Commit

Permalink
Backport PR #3126 on branch 1.2.x (misc: Fix the batch size warning i…
Browse files Browse the repository at this point in the history
…n case of small last batch when using external indices) (#3127)

Backport PR #3126: misc: Fix the batch size warning in case of small
last batch when using external indices

Co-authored-by: Ori Kronfeld <[email protected]>
  • Loading branch information
meeseeksmachine and ori-kron-wis authored Jan 7, 2025
1 parent e73e485 commit 32b0b5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scvi/dataloaders/_data_splitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def validate_data_split_with_external_indexing(
warnings.warn(
f"Last batch will have a small size of {num_of_cells} "
f"samples. Consider changing settings.batch_size or batch_size in model.train "
f"from currently {settings.batch_size} to avoid errors during model training "
f"from currently {batch_size} to avoid errors during model training "
f"or change the given external indices accordingly.",
UserWarning,
stacklevel=settings.warnings_stacklevel,
Expand Down

0 comments on commit 32b0b5c

Please sign in to comment.