Permalink
Browse files

pep8

  • Loading branch information...
1 parent 2fd33fd commit badddc85b432a786d8479c7f413f6cab37d1144b @agramfort agramfort committed Jun 25, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 scikits/learn/feature_extraction/tests/test_image.py
@@ -128,12 +128,14 @@ def test_reconstruct_patches_perfect_color():
lena_reconstructed = reconstruct_from_patches_2d(patches, lena.shape)
np.testing.assert_array_equal(lena, lena_reconstructed)
+
def test_patch_extractor_max_patches():
lenas = _make_images()
extr = PatchExtractor(patch_size=(8, 8), max_patches=100, seed=0)
patches = extr.transform(lenas)
assert patches.shape == (len(lenas) * 100, 8, 8)
+
def test_patch_extractor_all_patches():
lenas = _make_images()
i_h, i_w = lenas.shape[1:3]

0 comments on commit badddc8

Please sign in to comment.