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

void Impala::Core::DataFactory::WriteConceptModel ( String  concept,
Training::Classifier c 
) [inline]

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:

Todo:
make a function SVM::SaveModel(IOBuffer*) and change this function accordingly

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:


Generated on Fri Mar 19 10:55:54 2010 for ImpalaSrc by  doxygen 1.5.1