Mercurial > hg > smallbox
comparison util/SMALL_learn.m @ 228:198d4d9cee74 luisf_dev
Now can use a local configuration file, which is a copy of the default config files, and thus not being commited to the repository.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Thu, 12 Apr 2012 15:06:41 +0100 |
parents | a986ee86651e |
children |
comparison
equal
deleted
inserted
replaced
227:b50e2b6a9c37 | 228:198d4d9cee74 |
---|---|
26 end | 26 end |
27 | 27 |
28 start=cputime; | 28 start=cputime; |
29 tStart=tic; | 29 tStart=tic; |
30 | 30 |
31 % toolboxes configuration file | 31 %% toolbox configuration |
32 run(fullfile(SMALL_path, 'config/SMALL_learn_config.m')); | 32 % test if there is a locally modified version of the config |
33 % otherwise reads the "default" config file | |
34 if exist(fullfile(SMALL_path, 'config/SMALL_learn_config_local.m'), 'file') == 2 | |
35 printf('\n\nSMALL_learn: Using local configuration file.\n\n'); | |
36 run(fullfile(SMALL_path, 'config/SMALL_learn_config_local.m')); | |
37 else | |
38 printf('\n\nSMALL_learn: Using default configuration file.\n\n'); | |
39 run(fullfile(SMALL_path, 'config/SMALL_learn_config.m')); | |
40 end | |
33 | 41 |
34 %% | 42 %% |
35 % Dictionary Learning time | 43 % Dictionary Learning time |
36 tElapsed=toc(tStart); | 44 tElapsed=toc(tStart); |
37 DL.time = cputime - start; | 45 DL.time = cputime - start; |