# HG changeset patch # User gdesjardins # Date 1309877800 14400 # Node ID be4a49a65333c588540aaff2af7c9e648ec0f51a # Parent 444222497167510b0b830d1ccb146d5819e64913 modified Nade dataset to use new config.get_filepath_in_roots mechanism diff -r 444222497167 -r be4a49a65333 pylearn/datasets/nade.py --- a/pylearn/datasets/nade.py Wed Jun 22 16:20:16 2011 -0400 +++ b/pylearn/datasets/nade.py Tue Jul 05 10:56:40 2011 -0400 @@ -4,6 +4,7 @@ from pylearn.io.pmat import PMat from pylearn.datasets.config import data_root # config from pylearn.datasets.dataset import Dataset +import config def load_dataset(name=None): """ @@ -26,8 +27,10 @@ assert name in ['adult','binarized_mnist', 'mnist', 'connect4','dna', 'mushrooms','nips','ocr_letters','rcv1','web'] rval = Dataset() - - path = os.path.join(data_root(), 'larocheh', name) + + # dataset lookup through $PYLEARN_DATA_ROOT + _path = os.path.join('larocheh', name) + path = config.get_filepath_in_roots(_path) # load training set x=numpy.load(os.path.join(path,'train_data.npy'))