Examples for C++ libshogun Interface

This page lists ready to run shogun examples for the C++ libshogun interface.

To run the examples you will need to manually compile them via

g++ name_of_example.cpp -lshogun

in case you installed libshogun to a nonstandard directory you will need to specify the appropriate library and include paths, e.g.

g++ -I/path/to/libshogun/includes name_of_example.cpp -L/path/to/libshogun/sofile -lshogun

Then the examples are standard binary executables and can be started via


respectively if the libraries are in nonstandard locations (such that they cannot be found by the dynamic linker)

LD_LIBRARY_PATH=path/to/libshogun ./name_of_example





 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation