# HG changeset patch # User Pierre-Antoine Manzagol # Date 1265771512 18000 # Node ID cdbfdbf7ec56efd4c3fe00f1cb6cf84bfe18ea18 # Parent 2f8614685be3e1ca29de4b87b652170fc50121ff Nist SD preproc: ensuring upcast to float during centering. diff -r 2f8614685be3 -r cdbfdbf7ec56 pylearn/datasets/nist_sd.py --- a/pylearn/datasets/nist_sd.py Tue Feb 09 22:02:34 2010 -0500 +++ b/pylearn/datasets/nist_sd.py Tue Feb 09 22:11:52 2010 -0500 @@ -8,7 +8,7 @@ from pylearn.datasets.dataset import Dataset def nist_to_float(x): - return (x - 128)/ 128.0 + return (x - 128.0)/ 128.0 def load(dataset = 'train', attribute = 'data'): """Load the filetensor corresponding to the set and attribute.