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

void Impala::Core::Training::TesterIOHelper::WriteAveragePrecision ( double  ap  )  [inline]

Definition at line 152 of file TesterIoHelper.h.

References AssertFileFound(), cConceptSet, cFeature, cModel, Impala::Core::Database::RawDataSet::GetFilePathConceptModel(), ILOG_ERROR, mOutput, and ScoreFilename().

Referenced by Impala::Core::Training::Tester::TestAveragePrecision().

00153     {
00154         String filename = ScoreFilename();
00155         String path = mOutput->GetFilePathConceptModel
00156             (cConceptSet, cModel, cFeature, filename, true, false);
00157         AssertFileFound(path, "could not write AP "+ filename);
00158 
00159         std::ofstream ofs(path.c_str());
00160         if(ofs.is_open())
00161         {
00162             ofs.write((char*) &ap, sizeof(double));
00163             ofs.close();
00164         }
00165         else
00166             ILOG_ERROR("couldn't open file " << path << "for reading");
00167     }

Here is the call graph for this function:


Generated on Fri Mar 19 11:24:38 2010 for ImpalaSrc by  doxygen 1.5.1