Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix a few MC examples
  • Loading branch information
Soeren Sonnenburg committed May 21, 2012
1 parent e496dce commit 8d4b65b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Expand Up @@ -31,7 +31,7 @@ int main(int argc, char** argv)

// classify on training examples
for (int32_t i=0; i<3; i++)
SG_SPRINT("output[%d]=%f\n", i, ci->apply(i));
SG_SPRINT("output[%d]=%f\n", i, ci->apply_one(i));

// free up memory
SG_UNREF(ci);
Expand Down
@@ -1,6 +1,6 @@
#include <shogun/labels/MulticlassLabels.h>
#include <shogun/features/DenseFeatures.h>
#include <shogun/classifier/GaussianNaiveBayes.h>
#include <shogun/multiclass/GaussianNaiveBayes.h>
#include <shogun/base/init.h>
#include <shogun/lib/common.h>
#include <shogun/io/SGIO.h>
Expand Down
Expand Up @@ -89,7 +89,7 @@ int main(int argc, char** argv)
mc_svm->train();

// Classify the training examples and show the results
CMulticlassLabels* output = mc_svm->apply();
CMulticlassLabels* output = CMulticlassLabels::obtain_from_generic(mc_svm->apply());

SGVector< int32_t > out_labels = output->get_int_labels();
CMath::display_vector(out_labels.vector, out_labels.vlen);
Expand Down
2 changes: 1 addition & 1 deletion examples/undocumented/libshogun/classifier_qda.cpp
Expand Up @@ -10,7 +10,7 @@

#include <shogun/base/init.h>
#include <shogun/labels/MulticlassLabels.h>
#include <shogun/classifier/QDA.h>
#include <shogun/multiclass/QDA.h>
#include <shogun/features/DenseFeatures.h>
#include <shogun/io/SGIO.h>
#include <shogun/lib/common.h>
Expand Down

0 comments on commit 8d4b65b

Please sign in to comment.