Skip to content

Commit

Permalink
misc: Fix the batch size warning in case of small last batch when usi…
Browse files Browse the repository at this point in the history
…ng external indices (#3126)
  • Loading branch information
ori-kron-wis authored Jan 7, 2025
1 parent 0114693 commit a6deb6b
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 a6deb6b

Please sign in to comment.