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

Function get_linear_coef

src/thundersvm/thundersvm-scikit.cpp:306–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

304 }
305
306 void get_linear_coef(float* linear_coef, int n_binary_model, int n_feature, SvmModel* model){
307 SyncArray<float_type > coef(n_binary_model * n_feature);
308 coef.copy_from(model->get_linear_coef());
309 float_type * coef_ptr = coef.host_data();
310 for(int i = 0; i < coef.size(); i++){
311 linear_coef[i] = coef_ptr[i];
312 }
313 }
314
315 void get_rho(float* rho_, int rho_size, SvmModel* model){
316 SyncArray<float_type > rho(rho_size);

Callers

nothing calls this directly

Calls 3

copy_fromMethod · 0.80
host_dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected