comparison 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
comparison
equal deleted inserted replaced
503:c7ce66b4e8f4 504:19ab9ce916e3
1 """Configuration options for datasets
2
3
4 Especially, the locations of data files.
5 """
6
7 import os
8
9 def env_get(key, default):
10 return default if os.getenv(key) is None else os.getenv(key)
11
12 MNIST_amat = env_get('PYLEARN_MNIST_AMAT', '/u/bergstrj/pub/data/mnist.amat')