comparison deep/stacked_dae/config.py.example @ 268:b077d9e97a3b

Légères corrections à config.py.example et ajusté nist_sda pour utiliser la nouvelle 'interface' des datasets (nist_all()).
author fsavard
date Fri, 19 Mar 2010 11:31:57 -0400
parents 798d1344e6a2
children 43afd29f3dbd
comparison
equal deleted inserted replaced
267:798d1344e6a2 268:b077d9e97a3b
21 import sys 21 import sys
22 sys.path[0:0] = [codebase_clone_path] 22 sys.path[0:0] = [codebase_clone_path]
23 23
24 # remove paths we specifically don't want in $PYTHONPATH 24 # remove paths we specifically don't want in $PYTHONPATH
25 for bad_path in remove_these_from_pythonpath: 25 for bad_path in remove_these_from_pythonpath:
26 sys.path[:] = [el for el in sys.path if not el (bad_path, bad_path+"/")] 26 sys.path[:] = [el for el in sys.path if not el in (bad_path, bad_path+"/")]
27 27
28 # Make the imports 28 # Make the imports
29 import ift6266 29 import ift6266
30 30
31 # Just making sure we're importing from the right place 31 # Just making sure we're importing from the right place
32 modules_to_check = [ift6266] 32 modules_to_check = [ift6266]
33 for module in modules_to_check: 33 for module in modules_to_check:
34 assert codebase_clone_path in module.__path__ 34 if not codebase_clone_path in module.__path__[0]:
35 raise RuntimeError("Module loaded from incorrect path "+module.__path__[0])
35 36
36 # Path to pass to jobman sqlschedule. IMPORTANT TO CHANGE TO REFLECT YOUR CLONE. 37 # Path to pass to jobman sqlschedule. IMPORTANT TO CHANGE TO REFLECT YOUR CLONE.
37 # Make sure this is accessible from the default $PYTHONPATH (in your .bashrc) 38 # Make sure this is accessible from the default $PYTHONPATH (in your .bashrc)
39 # (and make sure every subdirectory has its __init__.py file)
38 EXPERIMENT_PATH = "ift6266_experiment10.ift6266.deep.stacked_dae.nist_sda.jobman_entrypoint" 40 EXPERIMENT_PATH = "ift6266_experiment10.ift6266.deep.stacked_dae.nist_sda.jobman_entrypoint"
39 41
40 # END EXPERIMENT ISOLATION CODE 42 # END EXPERIMENT ISOLATION CODE
41 # ---------------------------------------------------------------------------- 43 # ----------------------------------------------------------------------------
44
45 from jobman import DD
42 46
43 ''' 47 '''
44 These are parameters used by nist_sda.py. They'll end up as globals in there. 48 These are parameters used by nist_sda.py. They'll end up as globals in there.
45 49
46 Rename this file to config.py and configure as needed. 50 Rename this file to config.py and configure as needed.