mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
Minor change to avoid a compile time error in gcc-3.3
--HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403644
This commit is contained in:
parent
720fb2fc77
commit
96a2a7b90a
@ -343,7 +343,8 @@ namespace dlib
|
||||
// Make a kcentroid and find out what the gap is at the current gamma. Try to pick a reasonable
|
||||
// tolerance.
|
||||
const double tolerance = std::min(gamma*0.01, 0.01);
|
||||
kcentroid<kernel_type> kc(kernel_type(gamma), tolerance, num_sv);
|
||||
const kernel_type kern(gamma);
|
||||
kcentroid<kernel_type> kc(kern, tolerance, num_sv);
|
||||
scalar_type temp = centroid_gap(kc, samples, labels);
|
||||
|
||||
if (verbose)
|
||||
|
Loading…
Reference in New Issue
Block a user