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

Function model_new

src/thundersvm/thundersvm-scikit.cpp:16–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14
15extern "C" {
16 SvmModel* model_new(int svm_type){
17 switch (svm_type){
18 case SvmParam::C_SVC:
19 return new SVC();
20 case SvmParam::NU_SVC:
21 return new NuSVC();
22 case SvmParam::ONE_CLASS:
23 return new OneClassSVC();
24 case SvmParam::EPSILON_SVR:
25 return new SVR();
26 case SvmParam::NU_SVR:
27 return new NuSVR();
28 }
29 }
30
31 void model_free(SvmModel* model){
32 if(model){

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected