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

int Impala::Core::Training::BestFileDiff ( Util::PropertySet *  set1,
Util::PropertySet *  set2 
)

Definition at line 15 of file BestFile.h.

References Impala::Core::Vector::Diff(), and Impala::Util::PropertySet::GetDouble().

Referenced by BestFileReferenceDiff(), Impala::Core::Training::TestBestFile::testDiffDefaults(), Impala::Core::Training::TestBestFile::testDiffIgnore(), and Impala::Core::Training::TestBestFile::testDiffSimple().

00016 {
00017     svm_parameter* params1 = MakeSvmParams(set1, 0, 0);
00018     svm_parameter* params2 = MakeSvmParams(set2, 0, 0);
00019     const int svmParamCount = 13;
00020     const String svmParamList[svmParamCount] =
00021         {"C", "cache", "coef0", "degree", "gamma", "eps", "kernel", "nu", "p",
00022          "probability", "shrinking", "w1", "w2"};
00023     int diff = Impala::Diff(params1, params2, false);
00024     if (set1->GetDouble("score", -1) != set1->GetDouble("score", -1))
00025         diff++;
00026     delete params1;
00027     delete params2;
00028     return diff;
00029 }

Here is the call graph for this function:


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