Definition at line 73 of file ApplicationFactory.h. References Impala::Util::PropertySet::Add(), Impala::Util::PropertySet::GetBool(), Impala::Util::PropertySet::GetInt(), Impala::CmdOptions::GetInt(), Impala::Util::PropertySet::GetString(), Impala::CmdOptions::GetString(), ILOG_INFO, ILOG_VAR, ILOG_WARN, mOptions, mQuidClass, and Impala::QUID_CLASS_IMAGE. Referenced by Impala::Application::mainTrainModel(). 00074 { 00075 ILOG_VAR(Samples.mainCrossValidate.GetProperties); 00076 Util::PropertySet* properties = new Util::PropertySet; 00077 // todo: maybe we can change these calls into a loop. 00078 properties->Add("w1", mOptions->GetString("w1")); 00079 properties->Add("w2", mOptions->GetString("w2")); 00080 properties->Add("autoweight", mOptions->GetString("autoweight")); 00081 if(properties->GetBool("autoweight")) 00082 { 00083 properties->Add("w1", "1"); 00084 properties->Add("w2", "1"); 00085 } 00086 properties->Add("C", mOptions->GetString("C")); 00087 properties->Add("gamma", mOptions->GetString("gamma")); 00088 properties->Add("cache", mOptions->GetString("cache")); 00089 properties->Add("probability", mOptions->GetInt("probability")); 00090 properties->Add("kernel", mOptions->GetString("kernel")); 00091 properties->Add("precompute-kernel", 00092 mOptions->GetString("precompute-kernel")); 00093 properties->Add("folds", mOptions->GetInt("folds")); 00094 properties->Add("repetitions", mOptions->GetInt("repetitions")); 00095 properties->Add("episode-constrained", 00096 mOptions->GetInt("episode-constrained")); 00097 properties->Add("evaluator", mOptions->GetString("evaluator")); 00098 properties->Add("maxVideoId", mOptions->GetInt("maxVideoId")); 00099 properties->Add("maxPosPerVideo", mOptions->GetInt("maxPosPerVideo")); 00100 properties->Add("maxNegPerVideo", mOptions->GetInt("maxNegPerVideo")); 00101 if(properties->GetInt("episode-constrained") && 00102 mQuidClass == QUID_CLASS_IMAGE) 00103 { 00104 ILOG_WARN("ImageSet learning doesn't support episode-constrained!"); 00105 properties->Add("episode-constrained", 0); 00106 } 00107 if (Link::Mpi::MyId() == 0) 00108 { 00109 if(!properties->GetBool("episode-constrained")) 00110 ILOG_INFO("not using episode constrained.") 00111 else 00112 ILOG_INFO("using episode constrained.") 00113 ILOG_INFO("using " << properties->GetString("evaluator") << 00114 " for evaluation."); 00115 } 00116 00117 return properties; 00118 }
Here is the call graph for this function:
|