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

Util::PropertySet* Impala::Core::Training::Factory::MakeClassifierProperties (  )  [inline]

Definition at line 87 of file Factory.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_VAR, ILOG_WARN, Impala::Core::Database::RawDataSet::IsImageSet(), mDataSet, and mOptions.

Referenced by Factory().

00088     {
00089         ILOG_VAR(Samples.mainCrossValidate.GetProperties);
00090         Util::PropertySet* properties = new Util::PropertySet;
00091         // todo: maybe we can change these calls into a loop.
00092         properties->Add("w1", mOptions->GetString("w1"));
00093         properties->Add("w2", mOptions->GetString("w2"));
00094         properties->Add("autoweight", mOptions->GetString("autoweight"));
00095         if(properties->GetBool("autoweight"))
00096         {
00097             properties->Add("w1", "1");
00098             properties->Add("w2", "1");
00099         }
00100         properties->Add("C", mOptions->GetString("C"));
00101         properties->Add("gamma", mOptions->GetString("gamma"));
00102         properties->Add("cache", mOptions->GetString("cache"));
00103         properties->Add("probability", mOptions->GetInt("probability"));
00104         properties->Add("kernel", mOptions->GetString("kernel"));
00105         properties->Add("precompute-kernel", 
00106                         mOptions->GetString("precompute-kernel"));
00107         properties->Add("folds", mOptions->GetInt("folds"));
00108         properties->Add("repetitions", mOptions->GetInt("repetitions"));
00109         properties->Add("episode-constrained",
00110                         mOptions->GetInt("episode-constrained"));
00111         properties->Add("evaluator", mOptions->GetString("evaluator"));
00112         properties->Add("maxVideoId", mOptions->GetInt("maxVideoId"));
00113         properties->Add("maxPosPerVideo", mOptions->GetInt("maxPosPerVideo"));
00114         properties->Add("maxNegPerVideo", mOptions->GetInt("maxNegPerVideo"));
00115         properties->Add("restrictTestFoldSet",
00116                         mOptions->GetInt("restrictTestFoldSet"));
00117         if (properties->GetInt("episode-constrained") && mDataSet->IsImageSet())
00118         {
00119             ILOG_WARN("ImageSet learning doesn't support episode-constrained!");
00120             properties->Add("episode-constrained", 0);
00121         }
00122         if (!properties->GetBool("episode-constrained"))
00123             ILOG_INFO_HEADNODE("not using episode constrained.")
00124         else
00125             ILOG_INFO_HEADNODE("using episode constrained.")
00126         ILOG_INFO_HEADNODE("using " << properties->GetString("evaluator") <<
00127                            " for evaluation.");
00128 
00129         return properties;
00130     }

Here is the call graph for this function:


Generated on Thu Jan 13 09:21:13 2011 for ImpalaSrc by  doxygen 1.5.1