Skip to content

Commit

Permalink
add debug mode to parameter example
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Dec 2, 2012
1 parent 743bc80 commit 411fbab
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions examples/undocumented/libshogun/base_load_file_parameters.cpp
Expand Up @@ -10,17 +10,13 @@

#include <shogun/base/init.h>
#include <shogun/base/Parameter.h>
#include <shogun/io/SGIO.h>
#include <shogun/io/SerializableAsciiFile.h>
#include <shogun/base/ParameterMap.h>
#include <shogun/features/DenseFeatures.h>

using namespace shogun;

void print_message(FILE* target, const char* str)
{
fprintf(target, "%s", str);
}

class CTestClassInt : public CSGObject
{
public:
Expand Down Expand Up @@ -284,7 +280,8 @@ void test_load_file_parameters()

int main(int argc, char **argv)
{
init_shogun(&print_message, &print_message, &print_message);
init_shogun_with_defaults();
sg_io->set_loglevel(MSG_DEBUG);

test_load_file_parameters();

Expand Down

0 comments on commit 411fbab

Please sign in to comment.