# HG changeset patch # User Pierre-Antoine Manzagol # Date 1265770954 18000 # Node ID 2f8614685be3e1ca29de4b87b652170fc50121ff # Parent 4e3a3d9fef4306bb9ce005551f369955d781cdbf Nist SD dataset: modified preproc so input is between -1 an 1. diff -r 4e3a3d9fef43 -r 2f8614685be3 pylearn/datasets/nist_sd.py --- a/pylearn/datasets/nist_sd.py Tue Feb 09 20:14:46 2010 -0500 +++ b/pylearn/datasets/nist_sd.py Tue Feb 09 22:02:34 2010 -0500 @@ -8,7 +8,7 @@ from pylearn.datasets.dataset import Dataset def nist_to_float(x): - return x / 255.0 + return (x - 128)/ 128.0 def load(dataset = 'train', attribute = 'data'): """Load the filetensor corresponding to the set and attribute.