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 }
|