Skip to content

Instantly share code, notes, and snippets.

@sorig
sorig / bsd_files.txt
Last active January 19, 2018 09:48
GPL to BSD rename script
examples/undocumented/libshogun/regression_libsvr.cpp
examples/undocumented/libshogun/modelselection_grid_search_linear.cpp
examples/undocumented/libshogun/parameter_iterate_float64.cpp
examples/undocumented/libshogun/regression_gaussian_process_fitc.cpp
examples/undocumented/libshogun/features_subset_labels.cpp
examples/undocumented/libshogun/clustering_kmeans.cpp
examples/undocumented/libshogun/converter_hessianlocallylinearembedding.cpp
examples/undocumented/libshogun/serialization_basic_tests.cpp
examples/undocumented/libshogun/classifier_lda.cpp
examples/undocumented/libshogun/converter_laplacianeigenmaps.cpp

Packages to install in order to build Shogun on Ubuntu 14.04 LTS

sudo apt-get install cmake build-essential swig2.0 python-dev libeigen3-dev libatlas3-base libblas-dev liblapack-dev ctags

Then

pip install numpy ply

Installing Shogun into a Python virtualenv

This uses ccmake. Vanilla cmake can also be used

  • Activate your virtualenv: source /path/to/env/bin/activate

  • Run ccmake configure as usual:

cd path/to/shogun
mkdir build
CSVFile f_feats_train("../../data/classifier_4class_2d_linear_features_train.dat")
CSVFile f_feats_test("../../data/classifier_4class_2d_linear_features_test.dat")
CSVFile f_labels_train("../../data/classifier_4class_2d_linear_labels_train.dat")
CSVFile f_labels_test("../../data/classifier_4class_2d_linear_labels_test.dat")
#![create_features]
RealFeatures features_train(f_feats_train)
RealFeatures features_test(f_feats_test)
MulticlassLabels labels_train(f_labels_train)
MulticlassLabels labels_test(f_labels_test)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.