Skip to content

Commit

Permalink
CRYPTABT-363 Do not use apply_one on intermediate values of w
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Mar 22, 2017
1 parent 48e7ed4 commit 3a589db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shogun/classifier/AveragedPerceptron.cpp
Expand Up @@ -71,7 +71,7 @@ bool CAveragedPerceptron::train_machine(CFeatures* data)

for (int32_t i=0; i<num_vec; i++)
{
output[i]=apply_one(i);
output[i] = features->dense_dot(i, w.vector, w.vlen) + bias;

if (CMath::sign<float64_t>(output[i]) != train_labels.vector[i])
{
Expand Down

0 comments on commit 3a589db

Please sign in to comment.