# HG changeset patch # User gdesjardins # Date 1274564883 14400 # Node ID d15e4f803622f067a0ec47ade2cf140a4502cbb6 # Parent 594f4fda482920a2d496da783ec25cc02b0d8739 asdf diff -r 594f4fda4829 -r d15e4f803622 pylearn/datasets/miniblocks.py --- a/pylearn/datasets/miniblocks.py Sat May 22 17:44:26 2010 -0400 +++ b/pylearn/datasets/miniblocks.py Sat May 22 17:48:03 2010 -0400 @@ -5,7 +5,7 @@ from pylearn.datasets import Dataset -def miniblocks(reweight=None): +def miniblocks(reweight=None, use_inverse=False): # If 'reweight' is not None, then it is an integer N such that each # sample is duplicated k times, with k taken uniformly in {1, 2, ..., N}. # Some adjustment is made to ensure the dataset size is a multiple of its @@ -50,6 +50,7 @@ set = Dataset() set.train = Dataset.Obj(x = input, y = target) set.test = Dataset.Obj(x = input, y = target) + set.img_shape = (4,4) return set