Mercurial > ift6266
comparison 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 |
comparison
equal
deleted
inserted
replaced
217:de3aef84714a | 222:4cfd0eb438af |
---|---|
1 __all__ = ['nist_digits', 'nist_lower', 'nist_upper', 'nist_all', 'ocr', | 1 __all__ = ['nist_digits', 'nist_lower', 'nist_upper', 'nist_all', 'ocr', |
2 'nist_P07'] | 2 'nist_P07', 'mnist'] |
3 | 3 |
4 from ftfile import FTDataSet | 4 from ftfile import FTDataSet |
5 from gzpklfile import GzpklDataSet | |
5 import theano | 6 import theano |
6 | 7 |
7 NIST_PATH = '/data/lisa/data/nist/by_class/' | 8 NIST_PATH = '/data/lisa/data/nist/by_class/' |
8 DATA_PATH = '/data/lisa/data/ift6266h10/' | 9 DATA_PATH = '/data/lisa/data/ift6266h10/' |
9 | 10 |
44 test_data = [DATA_PATH+'data/P07_test_data.ft'], | 45 test_data = [DATA_PATH+'data/P07_test_data.ft'], |
45 test_lbl = [DATA_PATH+'data/P07_test_labels.ft'], | 46 test_lbl = [DATA_PATH+'data/P07_test_labels.ft'], |
46 valid_data = [DATA_PATH+'data/P07_valid_data.ft'], | 47 valid_data = [DATA_PATH+'data/P07_valid_data.ft'], |
47 valid_lbl = [DATA_PATH+'data/P07_valid_labels.ft'], | 48 valid_lbl = [DATA_PATH+'data/P07_valid_labels.ft'], |
48 indtype=theano.config.floatX, inscale=255.) | 49 indtype=theano.config.floatX, inscale=255.) |
50 | |
51 mnist = GzpklDataSet(DATA_PATH+'mnist.pkl.gz') |