diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-05-11 09:52:57 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-05-11 09:55:53 +0200 |
commit | de8807979ec66dad04a545a27bf8cdeba745b2e4 (patch) | |
tree | 7a7ee92a3080a44b37832b841d9d460dc6784bd0 | |
parent | 0ddbe493b93d244b7f350d40ffeed2d230ac3317 (diff) | |
download | dmc-de8807979ec66dad04a545a27bf8cdeba745b2e4.tar.gz dmc-de8807979ec66dad04a545a27bf8cdeba745b2e4.tar.bz2 dmc-de8807979ec66dad04a545a27bf8cdeba745b2e4.zip |
Print local min count for the prediction algorithms
-rw-r--r-- | run_tests.m | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/run_tests.m b/run_tests.m index 8ad4abf..db618fb 100644 --- a/run_tests.m +++ b/run_tests.m @@ -53,5 +53,10 @@ opt_err = sum(abs(real_data - opt_data)); regress2_err = sum(abs(real_data - regress2_data)); err = [mean_err;regress_err;quad_err;log_err;sevenday_err;random_err;regress2_err]; -min_err = sum(min(err)); -printf('global min. error: %d\n', min_err); +[min_err, err_idx] = min(err); +printf('global min. error: %d\n', sum(min_err)); +printf('local min count: '); +for i=1:size(err,1) + printf(' %3d', sum(sum(err_idx == i))); +end +printf('\n'); |