summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--calc_error.m12
-rw-r--r--run_tests.m4
2 files changed, 8 insertions, 8 deletions
diff --git a/calc_error.m b/calc_error.m
index 2f7e9c6..bedee9e 100644
--- a/calc_error.m
+++ b/calc_error.m
@@ -6,10 +6,10 @@ function [quad, total, local] = calc_error(name, data, pred)
printf('%-11s quad: %d\t total: %d\n', name, quad, total);
- plot((sum(abs(data - pred))), '-ob;unsorted;');
- hold on;
- plot(sort(sum(abs(data - pred))), '-or;sorted;');
- hold off;
- xlabel('products');
- ylabel('total error');
+ %plot((sum(abs(data - pred))), '-ob;unsorted;');
+ %hold on;
+ %plot(sort(sum(abs(data - pred))), '-or;sorted;');
+ %hold off;
+ %xlabel('products');
+ %ylabel('total error');
end
diff --git a/run_tests.m b/run_tests.m
index f0ccc6d..4ab6922 100644
--- a/run_tests.m
+++ b/run_tests.m
@@ -32,8 +32,8 @@ end
opt_data = opt_pred(real_data, pred_list);
[qerr(end+1), terr(end+1), opt_err] = calc_error('optimize', real_data, opt_data);
-bar(qerr);
-bar(terr);
+%bar(qerr);
+%bar(terr);
[min_err, err_idx] = min(err);
printf('global min. error: %d\n', sum(min_err));