Definition at line 47 of file SvmProblemBuilder.h. References AddFeature(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get1(), Impala::Core::Table::TableTem< Col1T, Col2T, Col3T, Col4T, Col5T, Col6T, Col7T, Col8T, Col9T >::Get2(), Impala::Core::Table::QuidTable::GetIndex(), ILOG_DEBUG, mModelLength, mUsedQuids, and Impala::Core::Table::Table::Size(). Referenced by Impala::Core::Training::TrainDataSrcFeatureTable::MakeSvmProblem(), and Impala::Core::Training::TrainDataSrcFeature::MakeSvmProblem(). 00048 { 00049 if(table == 0) 00050 { 00051 ILOG_DEBUG("AddFeatureTable: empty table"); 00052 return; 00053 } 00054 00055 for(int i=0 ; i<table->Size() ; ++i) 00056 { 00057 Quid q = table->Get1(i); 00058 // if the quid is in usedQuids 00062 if(mUsedQuids->GetIndex(q) < mUsedQuids->Size()) 00063 { 00064 Vector::VectorTem<double> v = table->Get2(i); 00065 AddFeature(q, &v); 00066 } 00067 } 00068 ILOG_DEBUG("AddFeatureTable: added " << table->Size() << 00069 " features, current size = " << mModelLength); 00070 }
Here is the call graph for this function:
|