E5D8 Specified meaning for max_patches=None in feature_extraction.image.extract_patches_2d by pinkgoldpeach · Pull Request #25996 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion sklearn/feature_extraction/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ def extract_patches_2d(image, patch_size, *, max_patches=None, random_state=None
max_patches : int or float, default=None
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 it corresponds to the total number
of patches that can be extracted.

random_state : int, RandomState instance, default=None
Determines the random number generator used for random sampling when
Expand Down
0