Skip to content

Commit

Permalink
Fix classifier_qda example
Browse files Browse the repository at this point in the history
  • Loading branch information
vigsterkr committed May 8, 2012
1 parent 82cc060 commit 7dfdcba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/undocumented/libshogun/classifier_qda.cpp
Expand Up @@ -44,8 +44,6 @@ void gen_rand_data(SGVector< float64_t > lab, SGMatrix< float64_t > feat)

int main(int argc, char ** argv)
{
const int32_t feature_cache = 0;

init_shogun_with_defaults();

SGVector< float64_t > lab(NUM);
Expand All @@ -57,7 +55,7 @@ int main(int argc, char ** argv)
CLabels* labels = new CLabels(lab);

// Create train features
CDenseFeatures< float64_t >* features = new CDenseFeatures< float64_t >(feature_cache);
CDenseFeatures< float64_t >* features = new CDenseFeatures< float64_t >(feat);

// Create QDA classifier
CQDA* qda = new CQDA(features, labels);
Expand Down

0 comments on commit 7dfdcba

Please sign in to comment.