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