create an svm_problem of *one* example The returned structure must be deleted with FreeProblem(). Implements Impala::Core::Training::TrainDataSrc. Definition at line 41 of file TrainDataSrcKernelMatrix.h. References Impala::Core::Array::Array2dTem< StorT, elemSize, ArithT >::CH(), ILOG_WARNING, Impala::Core::Training::TrainDataSrc::MakeEmptyProblem(), MakeProblem(), and mMatrix. 00042 { 00043 if(i >= mMatrix->CH()) 00044 { 00045 ILOG_WARNING("MakeSvmProblem(int) : index out of range"); 00046 return MakeEmptyProblem(); 00047 } 00048 svm_problem* p = MakeProblem(i, i+1); 00049 return p; 00050 }
Here is the call graph for this function:
|