comparison datasets/defs.py @ 211:476da2ba6a12

Add nist_P07 datasets to the predefs.
author Arnaud Bergeron <abergeron@gmail.com>
date Wed, 10 Mar 2010 09:56:02 -0500
parents f0f47b045cbf
children 4cfd0eb438af
comparison
equal deleted inserted replaced
210:dc0d77c8a878 211:476da2ba6a12
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 3
3 from ftfile import FTDataSet 4 from ftfile import FTDataSet
4 import theano 5 import theano
5 6
6 NIST_PATH = '/data/lisa/data/nist/by_class/' 7 NIST_PATH = '/data/lisa/data/nist/by_class/'
33 ocr = FTDataSet(train_data = [DATA_PATH+'ocr_train_data.ft'], 34 ocr = FTDataSet(train_data = [DATA_PATH+'ocr_train_data.ft'],
34 train_lbl = [DATA_PATH+'ocr_train_labels.ft'], 35 train_lbl = [DATA_PATH+'ocr_train_labels.ft'],
35 test_data = [DATA_PATH+'ocr_test_data.ft'], 36 test_data = [DATA_PATH+'ocr_test_data.ft'],
36 test_lbl = [DATA_PATH+'ocr_test_labels.ft'], 37 test_lbl = [DATA_PATH+'ocr_test_labels.ft'],
37 valid_data = [DATA_PATH+'ocr_valid_data.ft'], 38 valid_data = [DATA_PATH+'ocr_valid_data.ft'],
38 valid_lbl = [DATA_PATH+'ocr_valid_labels.ft']) 39 valid_lbl = [DATA_PATH+'ocr_valid_labels.ft'],
40 indtype=theano.config.floatX, inscale=255.)
41
42 nist_P07 = FTDataSet(train_data = [DATA_PATH+'data/P07_train'+str(i)+'_data.ft' for i in range(100)],
43 train_lbl = [DATA_PATH+'data/P07_train'+str(i)+'_labels.ft' for i in range(100)],
44 test_data = [DATA_PATH+'data/P07_test_data.ft'],
45 test_lbl = [DATA_PATH+'data/P07_test_labels.ft'],
46 valid_data = [DATA_PATH+'data/P07_valid_data.ft'],
47 valid_lbl = [DATA_PATH+'data/P07_valid_labels.ft'],
48 indtype=theano.config.floatX, inscale=255.)