[mlpack-svn] r13405 - mlpack/trunk/src/mlpack/core/tree/cover_tree
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Wed Aug 15 13:38:13 EDT 2012
Author: rcurtin
Date: 2012-08-15 13:38:12 -0400 (Wed, 15 Aug 2012)
New Revision: 13405
Modified:
mlpack/trunk/src/mlpack/core/tree/cover_tree/dual_tree_traverser_impl.hpp
Log:
Fix a warning which was actually also a bug; Score() takes the base case evaluation as a third argument (optionally), not a previous score.
Modified: mlpack/trunk/src/mlpack/core/tree/cover_tree/dual_tree_traverser_impl.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core/tree/cover_tree/dual_tree_traverser_impl.hpp 2012-08-15 17:36:06 UTC (rev 13404)
+++ mlpack/trunk/src/mlpack/core/tree/cover_tree/dual_tree_traverser_impl.hpp 2012-08-15 17:38:12 UTC (rev 13405)
@@ -328,7 +328,7 @@
rule.UpdateAfterRecursion(candidateQueryNode, *refNode);
}
- score = rule.Score(candidateQueryNode, *refNode, score);
+ score = rule.Score(candidateQueryNode, *refNode, baseCase);
// Log::Debug << "Rescored as " << score << std::endl;
More information about the mlpack-svn
mailing list