Mercurial > pylearn
changeset 614:f6c74f34cd35
Use usual data_root
author | Pascal Lamblin <lamblinp@iro.umontreal.ca> |
---|---|
date | Sat, 17 Jan 2009 00:34:14 -0500 |
parents | 7261e7d6368d |
children | d0f7a6f87adc |
files | pylearn/datasets/flickr.py |
diffstat | 1 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/pylearn/datasets/flickr.py Fri Jan 16 19:10:50 2009 -0500 +++ b/pylearn/datasets/flickr.py Sat Jan 17 00:34:14 2009 -0500 @@ -7,11 +7,7 @@ import numpy from ..io import filetensor -if 0: - from .config import data_root -else: - def data_root(): - return '/u/lisa/db/flickr/filetensor' +from .config import data_root from .dataset import Dataset @@ -25,7 +21,7 @@ """Return the basic flickr image classification problem. The images are 75x75, and there are 7500 training examples. """ - root = data_root() if folder is None else folder + root = os.path.join(data_root(), 'flickr') if folder is None else folder train = filetensor.read(open(os.path.join(root, path_train_10class))) valid = filetensor.read(open(os.path.join(root, path_valid_10class))) test = filetensor.read(open(os.path.join(root, path_test_10class)))