# HG changeset patch # User Frederic Bastien # Date 1315842443 14400 # Node ID 9ffe5d6faee3181bc465c8cf340f63a009795b06 # Parent 07b48bd449cdd75481df9187897220f4e0232c1f Auto white space fix. diff -r 07b48bd449cd -r 9ffe5d6faee3 pylearn/dataset_ops/image_patches.py --- a/pylearn/dataset_ops/image_patches.py Mon Sep 12 11:47:00 2011 -0400 +++ b/pylearn/dataset_ops/image_patches.py Mon Sep 12 11:47:23 2011 -0400 @@ -70,7 +70,7 @@ def undo_pca_filters_of_ranzato_hinton_2010(X, path=None): """Return tuple (R,G,B,None) of matrices for matrix `X` of filters (one per row) - + Return value can be passed to `image_tiling.tile_raster_images`. """ dct = ranzato_hinton_2010(path) @@ -85,7 +85,7 @@ image_tiling.save_tiled_raster_images(_img, fname) def ranzato_hinton_2010_op(s_idx, - split='train', + split='train', dtype=theano.config.floatX, rasterized=True, center=True, unitvar=True, @@ -105,9 +105,8 @@ raise NotImplementedError('dtype not float32') op = TensorFnDataset(dtype, - bcast=(False,), + bcast=(False,), fn=fn, single_shape=(105,)) x = op(s_idx%N) return x -