Skip to content

Commit

Permalink
DOC add meaning of max_patches=None in _compute_n_patches (scikit-l…
Browse files Browse the repository at this point in the history
…earn#25999)

Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
  • Loading branch information
2 people authored and REDVM committed Nov 16, 2023
1 parent 5170e8b commit ad1b01c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sklearn/feature_extraction/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,9 @@ def _compute_n_patches(i_h, i_w, p_h, p_w, max_patches=None, stride=(1, 1)):
p_w : int
The width of a patch
max_patches : int or float, default=None
The maximum number of patches to extract. If max_patches is a float
The maximum number of patches to extract. If `max_patches` is a float
between 0 and 1, it is taken to be a proportion of the total number
of patches.
of patches. If `max_patches` is None, all possible patches are extracted.
stride : tuple of length arr.ndim, default=(1, 1)
Indicates stride at which extraction shall be performed.
"""
Expand Down

0 comments on commit ad1b01c

Please sign in to comment.