actually the type of TrainDataSrc can depend on the 'kernel_name'
Definition at line 61 of file Factory.h. References Impala::Core::DataFactory::GetDistributedAccess(), Impala::Util::PropertySet::GetString(), Impala::Core::Matrix::LoadDistributedMatrix(), and mProperties. Referenced by MakeSearcher(), Impala::Core::Training::TesterIOHelper::MakeTrainData(), and Impala::Application::TrainModel(). 00062 { 00063 String kernelName = mProperties->GetString("kernel", "rbf"); 00064 ILOG_DEBUG_ONCE("MakeDataSrc with kernel "<<kernelName); 00065 if(kernelName == "precomputed") 00066 { 00067 Matrix::DistributedAccess* da = data->GetDistributedAccess(); 00068 Feature::FeatureTable* f = LoadDistributedMatrix(*da); 00069 return new TrainDataSrcKernelTable(f, anno); 00070 } 00071 if(kernelName == "dist-precomputed") 00072 { 00073 Matrix::DistributedAccess* da = data->GetDistributedAccess(); 00074 return new TrainDataSrcKernelDistributed(da, anno); 00075 } 00076 return new TrainDataSrcFeature(anno, data); 00077 }
Here is the call graph for this function:
|