Skip to content

Commit

Permalink
~ RealLabels to MulticlassLabels in QDA
Browse files Browse the repository at this point in the history
  • Loading branch information
iglesias committed May 21, 2012
1 parent 101802d commit ecc853c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/shogun/classifier/QDA.cpp
Expand Up @@ -15,7 +15,6 @@
#include <shogun/classifier/QDA.h>
#include <shogun/features/Features.h>
#include <shogun/labels/Labels.h>
#include <shogun/labels/RealLabels.h>
#include <shogun/labels/MulticlassLabels.h>
#include <shogun/machine/Machine.h>
#include <shogun/mathematics/Math.h>
Expand Down Expand Up @@ -123,7 +122,7 @@ CLabels* CQDA::apply()
norm2[i + k*num_vecs] *= -0.5;
}

CRealLabels* out = new CRealLabels(num_vecs);
CMulticlassLabels* out = new CMulticlassLabels(num_vecs);

for ( i = 0 ; i < num_vecs ; ++i )
out->set_label(i, CMath::arg_max(norm2.vector+i, num_vecs, m_num_classes));
Expand Down

0 comments on commit ecc853c

Please sign in to comment.