Definition at line 79 of file Factory.h. References Impala::Util::PropertySet::Add(), Impala::Util::PropertySet::GetInt(), ILOG_DEBUG, ILOG_ERROR, Impala::Core::DataFactory::MakeBestFile(), mProperties, Impala::Util::IOBuffer::ReadLine(), and Impala::Util::IOBuffer::Valid(). Referenced by Impala::Application::TrainModel(). 00080 { 00081 Util::IOBuffer* buf = dataFactory->MakeBestFile(concept, false); 00082 //Util::IOBuffer* buf = 0; 00083 if(buf == 0 || !buf->Valid()) 00084 { 00085 ILOG_ERROR("Could not open best file for concept "<<concept); 00086 return Util::PropertySet(); 00087 } 00088 String line = buf->ReadLine(); 00089 ILOG_DEBUG(line); 00090 line = buf->ReadLine(); 00091 ILOG_DEBUG(line); 00092 delete buf; 00093 Util::PropertySet params(line); 00094 params.Add("probability", 1); 00095 params.Add("cache", mProperties->GetInt("cache")); 00096 return params; 00097 }
Here is the call graph for this function:
|