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

void Impala::Core::Training::Svm::SetModel ( svm_model model  )  [inline, private]

Definition at line 325 of file Svm.h.

References mIsProbabilityModel, mModel, mProbilityIndex, svm_check_probability_model(), svm_destroy_model(), and svm_get_labels().

Referenced by LoadModel(), and Train().

00326     {
00327         if(mModel)
00328             svm_destroy_model(mModel);
00329         mModel = model;
00330         if(svm_check_probability_model(mModel))
00331             mIsProbabilityModel = true;
00332         else
00333             mIsProbabilityModel = false;
00334 
00335         if(mIsProbabilityModel)
00336         {
00337             int labels[2];
00338             svm_get_labels(mModel, labels);
00339             if(labels[1] == 1)
00340                 mProbilityIndex = 1;
00341         }
00342     }

Here is the call graph for this function:


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