Package pylearn :: Package datasets :: Module nist_sd
[hide private]

Module nist_sd

source code

Provides a Dataset to access the nist digits_reshuffled dataset.

Functions [hide private]
 
nist_to_float_11(x) source code
 
nist_to_float_01(x) source code
 
load(dataset='train', attribute='data')
Load the filetensor corresponding to the set and attribute.
source code
 
train_valid_test(ntrain=285661, nvalid=58646, ntest=58646, path=None, range='01')
Load the nist reshuffled digits dataset as a Dataset.
source code

Imports: os, numpy, ft, data_root, Dataset


Function Details [hide private]

load(dataset='train', attribute='data')

source code 

Load the filetensor corresponding to the set and attribute.

:param dataset: str that is 'train', 'valid' or 'test' :param attribute: str that is 'data' or 'labels'

train_valid_test(ntrain=285661, nvalid=58646, ntest=58646, path=None, range='01')

source code 

Load the nist reshuffled digits dataset as a Dataset.

Note: the examples are uint8 and the labels are int32.

To Do: possibility of loading part of the data.