summaryrefslogtreecommitdiff
path: root/run_tests.m
diff options
context:
space:
mode:
Diffstat (limited to 'run_tests.m')
-rw-r--r--run_tests.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/run_tests.m b/run_tests.m
index 12306a4..87b16e7 100644
--- a/run_tests.m
+++ b/run_tests.m
@@ -30,7 +30,8 @@ for i = 1:num_methods
[qerr(i), terr(i), err(i, :)] = calc_error(pred_methods(i).name, real_data, pred_list{i});
end
-opt_data = opt_pred(real_data, pred_list);
+method_idx = opt_idx(real_data, pred_list);
+opt_data = opt_pred(method_idx, pred_list);
[qerr(end+1), terr(end+1), opt_err] = calc_error('optimize', real_data, opt_data);
%bar(qerr);