From ddc7d6b92ff031bdbf55f393cd0eb6fb5354e1f3 Mon Sep 17 00:00:00 2001 From: Daniel Roberts Date: Thu, 25 Aug 2016 18:46:56 -0400 Subject: [PATCH] Corrected calculation of SMSE to use sample variance of targets, rather than estimated population variance --- code/machine_learning/ml_calcloss.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/machine_learning/ml_calcloss.m b/code/machine_learning/ml_calcloss.m index 34519b52..b41c504a 100644 --- a/code/machine_learning/ml_calcloss.m +++ b/code/machine_learning/ml_calcloss.m @@ -198,7 +198,7 @@ case 'sign' measure = mean(sign(Px) ~= sign(Tx)); case {'smse'} - measure = mean((Px-Tx).^2) ./ var(Tx); + measure = mean((Px-Tx).^2) ./ mean((Tx - mean(Tx)).^2); case {'max','linf'} measure = max(abs(Px-Tx)); case 'rms'