Clarified proper use of maximum_nu().

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403418
This commit is contained in:
Davis King 2010-01-28 23:37:21 +00:00
parent 10be95f425
commit 35377a88e3
1 changed files with 5 additions and 2 deletions

View File

@ -151,8 +151,11 @@ int main()
// The nu parameter has a maximum value that is dependent on the ratio of the +1 to -1
// labels in the training data. This function finds that value.
const double max_nu = maximum_nu(labels);
// labels in the training data. This function finds that value. The 0.999 is here because
// the maximum allowable nu is strictly less than the value returned by maximum_nu(). So
// rather than dealing with that below we can just back away from it a little bit here and then
// not worry about it.
const double max_nu = 0.999*maximum_nu(labels);