MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / model_setup

Method model_setup

src/thundersvm/model/svmmodel.cpp:21–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 "NULL"}; /* svm_type */
20
21void SvmModel::model_setup(const DataSet &dataset, SvmParam &param) {
22 SyncMem::reset_memory_size();
23 n_binary_models = n_classes * (n_classes - 1) / 2;
24 rho.resize(n_binary_models);
25 n_sv.resize(n_classes);
26 sv.clear();
27 this->param = param;
28}
29
30vector<float_type> SvmModel::cross_validation(DataSet dataset, SvmParam param, int n_fold) {
31 dataset.group_classes(this->param.svm_type == SvmParam::C_SVC);//group classes only for classification

Callers

nothing calls this directly

Calls 2

resizeMethod · 0.80
clearMethod · 0.80

Tested by

no test coverage detected