Mercurial > pylearn
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/datasets/config.py Wed Oct 29 11:38:49 2008 -0400 @@ -0,0 +1,12 @@ +"""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')