Definition at line 1206 of file mainIDo.cpp. References Exec(), ILOG_ERROR, Impala::MakeString(), mConcepts, mEpisodeConstrained, mFeatureIndexCat, mFik, mModel, mModelBins, and mSetName. Referenced by HandleCmd(), ModelOldWG(), ModelOldWGclus960sp(), ModelPreAllSift(), ModelPreAllSurf(), ModelPreWG(), and ModelPreWGclus960sp(). 01207 { 01208 if (mConcepts.empty()) 01209 { 01210 ILOG_ERROR("ModelExec: need concepts"); 01211 return; 01212 } 01213 if (mModel.empty()) 01214 { 01215 ILOG_ERROR("ModelExec: need model"); 01216 return; 01217 } 01218 01219 // the old non-precomputed version is just another ini file: 01220 // new=precompute.ini and old=train.ini 01221 if (ini.empty()) 01222 { 01223 ini = "${IMPALAROOT}/src/script/precompute.ini"; 01224 } 01225 String cat(""); 01226 if (! mFeatureIndexCat.empty()) 01227 cat = "--featureIndexCat " + mFeatureIndexCat; 01228 01229 Exec("crossvalidate", mSetName + " " + mConcepts + " " + mModel + " " + 01230 kernel + " --ini " + ini + " " + mEpisodeConstrained + " " + cat); 01231 Exec("trainmodel", mSetName + " " + mConcepts + " " + mModel + " " + 01232 kernel + " --ini " + ini + " " + cat); 01233 if (mFik) 01234 { 01235 Exec("conceptset", "approxfikmodel " + mSetName + " " + mConcepts + 01236 " " + mModel + " " + kernel + " " + MakeString(mModelBins) + 01237 " " + cat); 01238 } 01239 }
Here is the call graph for this function: ![]()
|