Mercurial > hg > camir-aes2014
annotate core/magnatagatune/tests_evals/rbm_subspace/resume_from_grid.m @ 0:e9a9cd732c1e tip
first hg version after svn
author | wolffd |
---|---|
date | Tue, 10 Feb 2015 15:05:51 +0000 |
parents | |
children |
rev | line source |
---|---|
wolffd@0 | 1 function inx = resume_from_grid(log_file,inx_size); |
wolffd@0 | 2 % The function read the log file and resume the grid search for params |
wolffd@0 | 3 % sontran 2013 |
wolffd@0 | 4 stt = exist(log_file,'file'); |
wolffd@0 | 5 if stt == 0 |
wolffd@0 | 6 inx = ones(1,inx_size); |
wolffd@0 | 7 else |
wolffd@0 | 8 load(log_file); |
wolffd@0 | 9 inx = data(end,:); |
wolffd@0 | 10 inx = inx(1:inx_size); |
wolffd@0 | 11 end |
wolffd@0 | 12 end |
wolffd@0 | 13 |