diff datasets/defs.py @ 222:4cfd0eb438af

Add mnist to datasets (and supporting code).
author Arnaud Bergeron <abergeron@gmail.com>
date Thu, 11 Mar 2010 14:41:31 -0500
parents 476da2ba6a12
children 6f4e3719a3cc
line wrap: on
line diff
--- a/datasets/defs.py	Wed Mar 10 17:08:50 2010 -0500
+++ b/datasets/defs.py	Thu Mar 11 14:41:31 2010 -0500
@@ -1,7 +1,8 @@
 __all__ = ['nist_digits', 'nist_lower', 'nist_upper', 'nist_all', 'ocr', 
-           'nist_P07']
+           'nist_P07', 'mnist']
 
 from ftfile import FTDataSet
+from gzpklfile import GzpklDataSet
 import theano
 
 NIST_PATH = '/data/lisa/data/nist/by_class/'
@@ -46,3 +47,5 @@
                      valid_data = [DATA_PATH+'data/P07_valid_data.ft'],
                      valid_lbl = [DATA_PATH+'data/P07_valid_labels.ft'],
                      indtype=theano.config.floatX, inscale=255.)
+
+mnist = GzpklDataSet(DATA_PATH+'mnist.pkl.gz')