Mercurial > pylearn
changeset 897:2f8614685be3
Nist SD dataset: modified preproc so input is between -1 an 1.
author | Pierre-Antoine Manzagol <pierre.antoine.manzagol@gmail.com> |
---|---|
date | Tue, 09 Feb 2010 22:02:34 -0500 |
parents | 4e3a3d9fef43 |
children | cdbfdbf7ec56 |
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 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.