Skip to content

Commit

Permalink
Fix bug in max_max_dist
Browse files Browse the repository at this point in the history
  • Loading branch information
bharatr21 authored and stweil committed May 22, 2019
1 parent c926bdb commit bc3ea62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/classify/trainingsampleset.cpp
Expand Up @@ -618,6 +618,7 @@ void TrainingSampleSet::ComputeCanonicalSamples(const IntFeatureMap& map,
if (dist > max_dist) {
max_dist = dist;
if (dist > max_max_dist) {
max_max_dist = dist;
max_s1 = s1;
max_s2 = s2;
}
Expand Down

0 comments on commit bc3ea62

Please sign in to comment.