Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f663340

Browse filesBrowse files
DOC Specified meaning for max_patches=None in extract_patches_2d (#25996)
1 parent 9ed51ce commit f663340
Copy full SHA for f663340

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed

‎sklearn/feature_extraction/image.py

Copy file name to clipboardExpand all lines: sklearn/feature_extraction/image.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,8 @@ def extract_patches_2d(image, patch_size, *, max_patches=None, random_state=None
371371
max_patches : int or float, default=None
372372
The maximum number of patches to extract. If `max_patches` is a float
373373
between 0 and 1, it is taken to be a proportion of the total number
374-
of patches.
374+
of patches. If `max_patches` is None it corresponds to the total number
375+
of patches that can be extracted.
375376
376377
random_state : int, RandomState instance, default=None
377378
Determines the random number generator used for random sampling when

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.