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

Function get_rho

src/thundersvm/thundersvm-scikit.cpp:315–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313 }
314
315 void get_rho(float* rho_, int rho_size, SvmModel* model){
316 SyncArray<float_type > rho(rho_size);
317 rho.copy_from(model->get_rho());
318 float_type * rho_ptr = rho.host_data();
319 for(int i = 0; i < rho.size(); i++){
320 rho_[i] = rho_ptr[i];
321 }
322 }
323
324 void sparse_decision(int row_size, float* val, int* row_ptr, int* col_ptr, SvmModel *model, int value_size, float* dec_value){
325 DataSet predict_dataset;

Callers

nothing calls this directly

Calls 3

copy_fromMethod · 0.80
host_dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected