[mlpack-git] master: Remove self-flagellation; no longer necessary. (5538fb0)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Wed May 20 23:05:51 EDT 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/77d750c8fd46140b1d6060424f68768a21c89377...7e9cd46afb53817ae93ccbd02637d7726137ce4d
>---------------------------------------------------------------
commit 5538fb0441bc5675ba5525b02937caf6d2fe97d2
Author: Ryan Curtin <ryan at ratml.org>
Date: Fri May 8 13:14:03 2015 -0400
Remove self-flagellation; no longer necessary.
>---------------------------------------------------------------
5538fb0441bc5675ba5525b02937caf6d2fe97d2
src/mlpack/methods/kmeans/dual_tree_kmeans_impl.hpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/mlpack/methods/kmeans/dual_tree_kmeans_impl.hpp b/src/mlpack/methods/kmeans/dual_tree_kmeans_impl.hpp
index fa66007..78d7b77 100644
--- a/src/mlpack/methods/kmeans/dual_tree_kmeans_impl.hpp
+++ b/src/mlpack/methods/kmeans/dual_tree_kmeans_impl.hpp
@@ -501,8 +501,7 @@ void DualTreeKMeans<MetricType, MatType, TreeType>::CoalesceTree(
TreeType& node,
const size_t child /* Which child are we? */)
{
- // If one of the two children is pruned, we hide this node.
- // This assumes the BinarySpaceTree. (bad Ryan! bad!)
+ // If all children except one are pruned, we can hide this node.
if (node.NumChildren() == 0)
return; // We can't do anything.
More information about the mlpack-git
mailing list