Skip to content

Commit

Permalink
[WIP] add debugging info why balanced cond tree fails
Browse files Browse the repository at this point in the history
  • Loading branch information
vigsterkr committed Jan 27, 2017
1 parent 9d8ab8a commit 7986763
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Expand Up @@ -28,5 +28,5 @@ build:

test_script:
- cd %APPVEYOR_BUILD_FOLDER%\build
- ctest --output-on-failure -C %CONFIGURATION%
- ctest --output-on-failure -VV -C %CONFIGURATION%
- cd ..
Expand Up @@ -9,6 +9,7 @@
*
* This example demonstrates use of the Vowpal Wabbit learning algorithm.
*/
#include <iostream>

#include <shogun/base/init.h>
#include <shogun/lib/common.h>
Expand All @@ -23,6 +24,7 @@ int main(int argc, char **argv)
{
init_shogun_with_defaults();

try {
const char* train_file_name = "../data/7class_example4_train.dense";
const char* test_file_name = "../data/7class_example4_test.dense";
CStreamingAsciiFile* train_file = new CStreamingAsciiFile(train_file_name);
Expand Down Expand Up @@ -91,8 +93,13 @@ int main(int argc, char **argv)
SG_UNREF(test_file);
SG_UNREF(cpt);
SG_UNREF(pred);

} catch (ShogunException& e) {
std::cout << "got shogun exception: " << e.get_exception_string() << std::endl;
} catch(...) {
std::cout << "unknown exception!" << std::endl;
}
exit_shogun();


return 0;
}

0 comments on commit 7986763

Please sign in to comment.