class sklearn.feature_extraction.image.PatchExtractor(patch_size=None, max_patches=None, random_state=None)
[source]
Extracts patches from a collection of images
Read more in the User Guide.
Parameters: 


fit (X[, y])  Do nothing and return the estimator unchanged 
get_params ([deep])  Get parameters for this estimator. 
set_params (**params)  Set the parameters of this estimator. 
transform (X)  Transforms the image samples in X into a matrix of patch data. 
__init__(patch_size=None, max_patches=None, random_state=None)
[source]
fit(X, y=None)
[source]
Do nothing and return the estimator unchanged
This method is just there to implement the usual API and hence work in pipelines.
Parameters: 


get_params(deep=True)
[source]
Get parameters for this estimator.
Parameters: 


Returns: 

set_params(**params)
[source]
Set the parameters of this estimator.
The method works on simple estimators as well as on nested objects (such as pipelines). The latter have parameters of the form <component>__<parameter>
so that it’s possible to update each component of a nested object.
Returns: 


transform(X)
[source]
Transforms the image samples in X into a matrix of patch data.
Parameters: 


Returns: 

© 2007–2018 The scikitlearn developers
Licensed under the 3clause BSD License.
http://scikitlearn.org/stable/modules/generated/sklearn.feature_extraction.image.PatchExtractor.html