Skip to content

Commit a65b16c

Browse files
Ily83glemaitre
andauthored
DOC add meaning of max_patches=None in _compute_n_patches (scikit-learn#25999)
Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
1 parent 9cbcc1f commit a65b16c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/feature_extraction/image.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,9 +261,9 @@ def _compute_n_patches(i_h, i_w, p_h, p_w, max_patches=None):
261261
p_w : int
262262
The width of a patch
263263
max_patches : int or float, default=None
264-
The maximum number of patches to extract. If max_patches is a float
264+
The maximum number of patches to extract. If `max_patches` is a float
265265
between 0 and 1, it is taken to be a proportion of the total number
266-
of patches.
266+
of patches. If `max_patches` is None, all possible patches are extracted.
267267
"""
268268
n_h = i_h - p_h + 1
269269
n_w = i_w - p_w + 1

0 commit comments

Comments
 (0)