Mercurial > pylearn
view datasets/config.py @ 504:19ab9ce916e3
slightly more sophisticated system for finding the mnist data
author | James Bergstra <bergstrj@iro.umontreal.ca> |
---|---|
date | Wed, 29 Oct 2008 11:38:49 -0400 |
parents | |
children | 74b3e65f5f24 |
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) MNIST_amat = env_get('PYLEARN_MNIST_AMAT', '/u/bergstrj/pub/data/mnist.amat')