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

std::vector<String> Impala::Core::DataFactory::MakeConceptList (  )  [inline]

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:


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