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

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

Definition at line 257 of file Svm.h.

References mIsProbabilityModel, mModel, and mProbilityIndex.

Referenced by Impala::Persistency::SvmRepositoryInFile::Get(), Svm(), and Train().

00258     {
00259         if (mModel)
00260             svm_destroy_model(mModel);
00261         mModel = model;
00262         if (svm_check_probability_model(mModel))
00263             mIsProbabilityModel = true;
00264         else
00265             mIsProbabilityModel = false;
00266 
00267         if (mIsProbabilityModel)
00268         {
00269             int labels[2];
00270             svm_get_labels(mModel, labels);
00271             if (labels[1] == 1)
00272                 mProbilityIndex = 1;
00273         }
00274     }


Generated on Thu Jan 13 09:21:20 2011 for ImpalaSrc by  doxygen 1.5.1