Implements Impala::Core::Training::ApplyConceptsHelper. Definition at line 224 of file ApplyConceptsHelperKernels.h. References Impala::Util::PropertySet::Add(), Impala::Core::Database::RawDataSet::GetDatabase(), ILOG_DEBUG, ILOG_ERROR, Impala::Core::Training::Svm::LoadModel(), mAnnoSet, mInitialized, mKernelMatrix, Impala::Core::Training::Svm::OverrideModelOptions(), and Impala::Core::Training::Svm::Predict(). 00225 { 00226 if(!mInitialized) 00227 ILOG_ERROR("not initialized"); 00228 Training::Svm svm; 00229 ILOG_DEBUG("loading model") 00230 svm.LoadModel(modelName, mAnnoSet->GetDatabase()); 00231 Util::PropertySet ps; 00232 ps.Add("kernel","precomputed"); 00233 svm.OverrideModelOptions(&ps); 00234 00235 if(!mKernelMatrix) 00236 { 00237 ILOG_ERROR("Error: kernel matrix is NULL in Predict"); 00238 } 00239 00241 ILOG_DEBUG("creating datasrc"); 00242 Training::TrainDataSrcKernelMatrix dataSrc(mKernelMatrix); 00243 ILOG_DEBUG("calling svm.predict"); 00244 return svm.Predict(&dataSrc); 00245 }
Here is the call graph for this function:
|