diff options
author | Jan Klemkow <j.klemkow@wemelug.de> | 2012-05-10 14:28:48 +0200 |
---|---|---|
committer | Jan Klemkow <j.klemkow@wemelug.de> | 2012-05-10 14:28:48 +0200 |
commit | 187eb39cf667a35776ce0b29282014f8fab8d2a7 (patch) | |
tree | 861a8b83cf9a7ffed3210dc9fea353be62845a01 | |
parent | efb0d5844a6d37dab6db0240f684898f5a28338c (diff) | |
download | dmc-187eb39cf667a35776ce0b29282014f8fab8d2a7.tar.gz dmc-187eb39cf667a35776ce0b29282014f8fab8d2a7.tar.bz2 dmc-187eb39cf667a35776ce0b29282014f8fab8d2a7.zip |
calc_error: rounding prediction befor error calculation.
-rw-r--r-- | calc_error.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/calc_error.m b/calc_error.m index a26b714..7204715 100644 --- a/calc_error.m +++ b/calc_error.m @@ -1,7 +1,7 @@ function [quad, total] = calc_error(name, data, pred) - quad = quad_error(data, pred); - total = total_error(data, pred); + quad = quad_error(data, round(pred)); + total = total_error(data, round(pred)); printf('%-11s quad: %d\t total: %d\n', name, quad, total); |