Mercurial > ift6266
comparison deep/crbm/mnist_config.py.example @ 345:74287f0371bf
example config file needs EXPERIMENT_PATH outside isolate_experiment
author | fsavard |
---|---|
date | Sun, 18 Apr 2010 13:22:24 -0400 |
parents | 523e7b87c521 |
children | 64fa85d68923 |
comparison
equal
deleted
inserted
replaced
344:ed1c0830681e | 345:74287f0371bf |
---|---|
1 # ---------------------------------------------------------------------------- | 1 # ---------------------------------------------------------------------------- |
2 # BEGIN EXPERIMENT ISOLATION CODE | 2 # BEGIN EXPERIMENT ISOLATION CODE |
3 | |
4 # Path to pass to jobman sqlschedule. IMPORTANT TO CHANGE TO REFLECT YOUR CLONE. | |
5 # Make sure this is accessible from the default $PYTHONPATH (in your .bashrc) | |
6 # (and make sure every subdirectory has its __init__.py file) | |
7 EXPERIMENT_PATH = "ift6266_mnistcrbm_exp1.ift6266.deep.crbm.mnist_crbm.jobman_entrypoint" | |
3 | 8 |
4 def isolate_experiment(): | 9 def isolate_experiment(): |
5 ''' | 10 ''' |
6 This makes sure we use the codebase clone created for this experiment. | 11 This makes sure we use the codebase clone created for this experiment. |
7 I.e. if you want to make modifications to the codebase but don't want your | 12 I.e. if you want to make modifications to the codebase but don't want your |
32 # Just making sure we're importing from the right place | 37 # Just making sure we're importing from the right place |
33 modules_to_check = [ift6266] | 38 modules_to_check = [ift6266] |
34 for module in modules_to_check: | 39 for module in modules_to_check: |
35 if not codebase_clone_path in module.__path__[0]: | 40 if not codebase_clone_path in module.__path__[0]: |
36 raise RuntimeError("Module loaded from incorrect path "+module.__path__[0]) | 41 raise RuntimeError("Module loaded from incorrect path "+module.__path__[0]) |
37 | |
38 # Path to pass to jobman sqlschedule. IMPORTANT TO CHANGE TO REFLECT YOUR CLONE. | |
39 # Make sure this is accessible from the default $PYTHONPATH (in your .bashrc) | |
40 # (and make sure every subdirectory has its __init__.py file) | |
41 EXPERIMENT_PATH = "ift6266_mnistcrbm_exp1.ift6266.deep.crbm.mnist_crbm.jobman_entrypoint" | |
42 | 42 |
43 # END EXPERIMENT ISOLATION CODE | 43 # END EXPERIMENT ISOLATION CODE |
44 # ---------------------------------------------------------------------------- | 44 # ---------------------------------------------------------------------------- |
45 | 45 |
46 from jobman import DD | 46 from jobman import DD |