Skip to content

Commit

Permalink
min max.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Oct 22, 2024
1 parent 72b5fea commit 763a286
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python-package/xgboost/testing/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def _create_dmatrix( # pylint: disable=too-many-arguments
extmem: bool,
enable_categorical: bool,
) -> xgb.DMatrix:
n_batches = min(2, n_samples)
n_batches = max(min(2, n_samples), 1)
it = CatIter(
n_samples // n_batches,
n_features,
Expand Down

0 comments on commit 763a286

Please sign in to comment.