Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
also ifdef HAVE_LAPACK liblinear based examples
  • Loading branch information
Soeren Sonnenburg committed Aug 26, 2011
1 parent c5e08d9 commit 301e5f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Expand Up @@ -9,6 +9,7 @@
*/

#include <shogun/base/init.h>
#include <shogun/lib/config.h>
#include <shogun/evaluation/CrossValidation.h>
#include <shogun/evaluation/ContingencyTableEvaluation.h>
#include <shogun/evaluation/StratifiedCrossValidationSplitting.h>
Expand Down Expand Up @@ -45,6 +46,7 @@ int main(int argc, char **argv)
{
init_shogun(&print_message, &print_message, &print_message);

#ifdef HAVE_LAPACK
int32_t num_subsets=5;
int32_t num_features=11;

Expand Down Expand Up @@ -96,7 +98,7 @@ int main(int argc, char **argv)
/* clean up */
SG_UNREF(best_combination);
SG_UNREF(grid_search);

#endif // HAVE_LAPACK
exit_shogun();

return 0;
Expand Down
Expand Up @@ -8,6 +8,7 @@
* Copyright (C) 2011 Berlin Institute of Technology and Max-Planck-Society
*/

#include <shogun/lib/config.h>
#include <shogun/classifier/svm/LibSVM.h>
#include <shogun/classifier/svm/LibLinear.h>
#include <shogun/kernel/DistantSegmentsKernel.h>
Expand Down Expand Up @@ -51,6 +52,7 @@ int main(int argc, char** argv)
{
init_shogun(&print_message);

#ifndef HAVE_LAPACK
CSGObject* object;

object=new CLibSVM();
Expand All @@ -76,6 +78,7 @@ int main(int argc, char** argv)
object=new CMinkowskiMetric();
print_modsel_parameters(object);
SG_UNREF(object);
#endif // HAVE_LAPACK

exit_shogun();
return 0;
Expand Down

0 comments on commit 301e5f5

Please sign in to comment.