comparison datasets/defs.py @ 175:224321bf043a

Define the ocr dataset and use the existing split for nist.
author Arnaud Bergeron <abergeron@gmail.com>
date Sat, 27 Feb 2010 13:56:14 -0500
parents datasets/nist.py@e3de934a98b6
children 76bc047df5ee
comparison
equal deleted inserted replaced
174:ff26436d42d6 175:224321bf043a
1 __all__ = ['nist_digits', 'nist_lower', 'nist_upper', 'nist_all']
2
3 from ftfile import FTDataSet
4
5 NIST_PATH = '/data/lisa/data/nist/by_class/'
6 DATA_PATH = '/data/lisa/data/ift6266h10/'
7
8 nist_digits = FTDataSet(train_data = [NIST_PATH+'digits/digits_train_data.ft'],
9 train_lbl = [NIST_PATH+'digits/digits_train_labels.ft'],
10 test_data = [NIST_PATH+'digits/digits_test_data.ft'],
11 test_lbl = [NIST_PATH+'digits/digits_test_labels.ft'])
12 nist_lower = FTDataSet(train_data = [NIST_PATH+'lower/lower_train_data.ft'],
13 train_lbl = [NIST_PATH+'lower/lower_train_labels.ft'],
14 test_data = [NIST_PATH+'lower/lower_test_data.ft'],
15 test_lbl = [NIST_PATH+'lower/lower_test_labels.ft'])
16 nist_upper = FTDataSet(train_data = [NIST_PATH+'upper/upper_train_data.ft'],
17 train_lbl = [NIST_PATH+'upper/upper_train_labels.ft'],
18 test_data = [NIST_PATH+'upper/upper_test_data.ft'],
19 test_lbl = [NIST_PATH+'upper/upper_test_labels.ft'])
20
21
22
23 nist_all = FTDataSet(train_data = [DATA_PATH+'train_data.ft'],
24 train_lbl = [DATA_PATH+'train_labels.ft'],
25 test_data = [DATA_PATH+'test_data.ft'],
26 test_lbl = [DATA_PATH+'test_labels.ft'],
27 valid_data = [DATA_PATH+'valid_data.ft'],
28 valid_lbl = [DATA_PATH+'valid_labels.ft'])
29
30 ocr = FTDataSet(train_data = [DATA_PATH+'ocr_train_data.ft'],
31 train_lbl = [DATA_PATH+'ocr_train_labels.ft'],
32 test_data = [DATA_PATH+'ocr_test_data.ft'],
33 test_lbl = [DATA_PATH+'ocr_test_labels.ft'],
34 valid_data = [DATA_PATH+'ocr_valid_data.ft'],
35 valid_lbl = [DATA_PATH+'ocr_valid_labels.ft'])