diff options
Diffstat (limited to 'calc_error.m')
-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); |