Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

double Impala::Core::Training::Svm::Predict ( const Impala::Core::Vector::VectorTem< double > *  feature  )  [inline]

Deprecated:
Note:
works only with non-kernel models
This functionality is used by ShotSegmenter.h. Im sure we can make a TrainDataSrc that serves the ShotSegmenters puropses.

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:


Generated on Fri Mar 19 11:24:00 2010 for ImpalaSrc by  doxygen 1.5.1