Definition at line 88 of file DataFactory.h. References Impala::Util::DatabaseReadStrings(), Impala::Core::Database::RawDataSet::GetFilePathAnnotation(), mConceptNumber, mConceptSet, mConceptStart, mDataSet, mDb, and Impala::Util::SubSelectInPlace(). Referenced by Impala::Application::CrossValidate(), SelectQuids(), and Impala::Application::TrainModel(). 00089 { 00090 std::vector<String> conceptList; 00091 String conceptFile = 00092 mDataSet->GetFilePathAnnotation(mConceptSet, false, false); 00093 Util::DatabaseReadStrings(conceptList, conceptFile, mDb); 00094 00095 /* old code to load just one concept; should we reinstate this? 00096 if (!options.GetString("concept").empty()) 00097 { 00098 String con = options.GetString("concept"); 00099 int idx = -1; 00100 for (int i=0 ; i<conceptList.size() ; i++) 00101 if (conceptList[i] == con) 00102 idx = i; 00103 if (idx == -1) 00104 { 00105 ILOG_ERROR("Unable to find concept " << con << " in list"); 00106 start = end = 0; 00107 return; 00108 } 00109 start = idx; 00110 number = 1; 00111 } 00112 */ 00113 // trunkate the concept list according to conceptStart and conceptNumber 00114 Util::SubSelectInPlace(&conceptList, mConceptStart, mConceptNumber); 00115 return conceptList; 00116 }
Here is the call graph for this function:
|