<commit_before>#ifndef _CPP_SVM_FEATURE_RANKING_H_
#define _CPP_SVM_FEATURE_RANKING_H_

#include "../export.h"
#include <dlib/svm/feature_ranking.h>
#include "template.h"
#include "../shared.h"

using namespace dlib;

#pragma region template

#define rank_features_template_sub(__TYPE__, error, __ELEMENT_TYPE__, __ROWS__, __COLUMNS__, KERNEL, ...) \
auto& kc = *static_cast<dlib::kcentroid<KERNEL<dlib::matrix<__TYPE__, __ROWS__, __COLUMNS__>>>*>(kcentroid);\
auto& tmp_labels = *static_cast<std::vector<__TYPE__>*>(labels);\
auto& tmp_samples = *static_cast<std::vector<dlib::matrix<__TYPE__, __ROWS__, __COLUMNS__>*>*>(samples);\
std::vector<__TYPE__> in_labels;\
std::vector<dlib::matrix<__TYPE__, __ROWS__, __COLUMNS__>> in_samples;\
for (int index = 0; index < tmp_labels.size(); index++)\<commit_msg>fix: 'is_binary_classification_problem' is missing<commit_after>#ifndef _CPP_SVM_FEATURE_RANKING_H_
#define _CPP_SVM_FEATURE_RANKING_H_

#include "../export.h"
#include <dlib/svm.h>
#include <dlib/svm/feature_ranking.h>
#include "template.h"
#include "../shared.h"

using namespace dlib;

#pragma region template

#define rank_features_template_sub(__TYPE__, error, __ELEMENT_TYPE__, __ROWS__, __COLUMNS__, KERNEL, ...) \
auto& kc = *static_cast<dlib::kcentroid<KERNEL<dlib::matrix<__TYPE__, __ROWS__, __COLUMNS__>>>*>(kcentroid);\
auto& tmp_labels = *static_cast<std::vector<__TYPE__>*>(labels);\
auto& tmp_samples = *static_cast<std::vector<dlib::matrix<__TYPE__, __ROWS__, __COLUMNS__>*>*>(samples);\
std::vector<__TYPE__> in_labels;\
std::vector<dlib::matrix<__TYPE__, __ROWS__, __COLUMNS__>> in_samples;\
for (int index = 0; index < tmp_labels.size(); index++)\
{'fraction_non_alphanumeric': 0.16138673042438734, 'fraction_numerical': 0.001195457262402869, 'mean_word_length': 8.511363636363637, 'pattern_counts': {'":': 0, '<': 32, '<?xml version=': 0, '>': 30, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5037468', 'n_tokens_mistral': 629, 'n_tokens_neox': 611, 'n_words': 106}