changeset 898:cdbfdbf7ec56

Nist SD preproc: ensuring upcast to float during centering.
author Pierre-Antoine Manzagol <pierre.antoine.manzagol@gmail.com>
date Tue, 09 Feb 2010 22:11:52 -0500
parents 2f8614685be3
children 2e87264493ef
files pylearn/datasets/nist_sd.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.