From 3a589db6f950e70c26cf5fdc80a49823d1b52492 Mon Sep 17 00:00:00 2001 From: Sergey Lisitsyn Date: Wed, 22 Mar 2017 22:50:57 +0300 Subject: [PATCH] CRYPTABT-363 Do not use apply_one on intermediate values of w --- src/shogun/classifier/AveragedPerceptron.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shogun/classifier/AveragedPerceptron.cpp b/src/shogun/classifier/AveragedPerceptron.cpp index 36d9d00fa00..35d89daa710 100644 --- a/src/shogun/classifier/AveragedPerceptron.cpp +++ b/src/shogun/classifier/AveragedPerceptron.cpp @@ -71,7 +71,7 @@ bool CAveragedPerceptron::train_machine(CFeatures* data) for (int32_t i=0; idense_dot(i, w.vector, w.vlen) + bias; if (CMath::sign(output[i]) != train_labels.vector[i]) {