Definition at line 225 of file Svm.h. References Impala::Core::Training::ConvertToSvmProblem(), ILOG_ERROR, mModel, PredictSingle(), and svm_problem::x. 00226 { 00227 if(!mModel) 00228 { 00229 ILOG_ERROR("[Svm::Predict] untrained classifier can't predict"); 00230 return 0.5; 00231 } 00232 svm_problem* p = ConvertToSvmProblem(feature); 00233 double score = PredictSingle(p->x[0]); 00234 DestroySvmProblem(p); 00235 return score; 00236 }
Here is the call graph for this function:
|