Mercurial > pylearn
comparison pylearn/algorithms/sparse_coding.py @ 1496:93b8373c6735
Prefix loggers with 'pylearn.' to ensure there is no conflict when using Pylearn code within another library
author | Olivier Delalleau <delallea@iro> |
---|---|
date | Mon, 22 Aug 2011 11:28:48 -0400 |
parents | e88d7b7d53ed |
children |
comparison
equal
deleted
inserted
replaced
1495:625fe86e3d5e | 1496:93b8373c6735 |
---|---|
150 'L').save('Z_j=%i.png'%j) | 150 'L').save('Z_j=%i.png'%j) |
151 | 151 |
152 | 152 |
153 if __name__ == '__main__': | 153 if __name__ == '__main__': |
154 logging.basicConfig(stream=sys.stderr) | 154 logging.basicConfig(stream=sys.stderr) |
155 logging.getLogger('main').setLevel(logging.INFO) | 155 logging.getLogger('pylearn.algorithms.sparse_coding.main').setLevel(logging.INFO) |
156 logging.getLogger('main').info('hello') | 156 logging.getLogger('pylearn.algorithms.sparse_coding.main').info('hello') |
157 | 157 |
158 # load olshausen images | 158 # load olshausen images |
159 reproduce_olshausen() | 159 reproduce_olshausen() |