Skip to content

Instantly share code, notes, and snippets.

@tklein23
tklein23 / hash-vector-bechmark.cpp
Created June 14, 2014 14:07
benchmark of feature-hashing implementations
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* Written (W) 2014 Thoralf Klein
*/
#include <shogun/base/init.h>
// your model should provide a method how to create an "own" structured labels object.
CStructuredLabels* MultilabelSOModel::structured_labels_factory(int32_t num_labels)
{
return new MultilabelSOModel(num_labels);
}