From 187eb39cf667a35776ce0b29282014f8fab8d2a7 Mon Sep 17 00:00:00 2001 From: Jan Klemkow Date: Thu, 10 May 2012 14:28:48 +0200 Subject: calc_error: rounding prediction befor error calculation. --- calc_error.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'calc_error.m') 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); -- cgit