

def test_patch_extractor_max_patches_default():
    faces = face_collection
    extr = PatchExtractor(max_patches=100, random_state=0)
    patches = patches.transform(faces)
    assert_equal(patches.shape, ((len(faces) * 100), 19, 25))

dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/feature_extraction/tests/test_image.py test_patch_extractor_max_patches_default/VarMisuse@28/41 `extr`->`patches`