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

Function get_support_classes

src/thundersvm/thundersvm-scikit.cpp:288–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286 }
287
288 void get_support_classes(int* n_support, int n_class, SvmModel* model){
289 SyncArray<int> n_sv(n_class);
290 n_sv.copy_from(model->get_n_sv());
291 int* n_sv_ptr = n_sv.host_data();
292 for(int i = 0; i < n_sv.size(); i++){
293 n_support[i] = n_sv_ptr[i];
294 }
295 }
296
297 void get_coef(float* dual_coef, int n_class, int n_sv, SvmModel* model){
298 SyncArray<float_type > coef((n_class - 1 ) * n_sv);

Callers

nothing calls this directly

Calls 3

copy_fromMethod · 0.80
host_dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected