It would be better if there was a function to open a IOBuffer and the classifier saves itself to this IOBuffer. But the interface of lbsvm doesn't support this. On the todo list:
Definition at line 320 of file DataFactory.h. References Impala::Core::Database::RawDataSet::GetFilePathConceptModel(), ILOG_ERROR, mConceptSet, mDataSet, mDb, mFeatureDef, mModelType, and Impala::Core::Training::Classifier::SaveModel(). Referenced by Impala::Application::TrainModel(). 00321 { 00322 String modelname = mDataSet->GetFilePathConceptModel 00323 (mConceptSet, mModelType, mFeatureDef, concept+".model", true, false); 00324 if(modelname == "") 00325 { 00326 ILOG_ERROR("Could not write " << concept << ".model"); 00327 } 00328 else 00329 c->SaveModel(modelname, mDb); 00330 }
Here is the call graph for this function:
|