Mercurial > pylearn
view datasets/config.py @ 505:74b3e65f5f24
added smallNorb dataset, switched to PYLEARN_DATA_ROOT
author | James Bergstra <bergstrj@iro.umontreal.ca> |
---|---|
date | Wed, 29 Oct 2008 17:09:04 -0400 |
parents | 19ab9ce916e3 |
children |
line wrap: on
line source
"""Configuration options for datasets Especially, the locations of data files. """ import os def env_get(key, default): return default if os.getenv(key) is None else os.getenv(key) def data_root(): return env_get('PYLEARN_DATA_ROOT', '/u/bergstrj/pub/data/')