From: Wei-Lin Chiang Date: Fri, 7 Oct 2016 04:49:42 +0000 (+0800) Subject: Remove an unnecessary check for actural reduction X-Git-Tag: v211~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1dc3f2585ea11e4fd2e0051a841c6e5e25599433;p=liblinear Remove an unnecessary check for actural reduction --- diff --git a/tron.cpp b/tron.cpp index 3ea60f6..3c32d7f 100644 --- a/tron.cpp +++ b/tron.cpp @@ -144,9 +144,9 @@ void TRON::tron(double *w) info("WARNING: f < -1.0e+32\n"); break; } - if (fabs(actred) <= 0 && prered <= 0) + if (prered <= 0) { - info("WARNING: actred and prered <= 0\n"); + info("WARNING: prered <= 0\n"); break; } if (fabs(actred) <= 1.0e-12*fabs(f) &&