mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Clarified proper use of maximum_nu().
--HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403418
This commit is contained in:
parent
10be95f425
commit
35377a88e3
@ -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);
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user