From 1596af9777ca4f40b89f963d6415b98dc2b6a13a Mon Sep 17 00:00:00 2001 From: Nicolas Pinto Date: Thu, 9 Aug 2012 20:56:53 -0300 Subject: [PATCH] Update generic/MalisCriterion.c Insane bug fix (again ;-) --- generic/MalisCriterion.c | 1 - 1 file changed, 1 deletion(-) diff --git a/generic/MalisCriterion.c b/generic/MalisCriterion.c index d8bcd78..09f3989 100644 --- a/generic/MalisCriterion.c +++ b/generic/MalisCriterion.c @@ -177,7 +177,6 @@ static int nn_(MalisCriterion_forward)(lua_State *L) // -ve example pairs // Sq-Sq loss is used here dl = max(0.0,conn_data[minEdge]-0.5+margin); - dl *= -1; loss += 0.5*dl*dl*nPair; dloss_data[minEdge] += dl*nPair; if (conn_data[minEdge] > 0.5) { // an error