[mlpack-git] master: Fix details. (634e271)

gitdub at mlpack.org gitdub at mlpack.org
Thu Aug 18 13:39:15 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/0f4b25acd6aaa14294c044874ba6cc0751712baa...0a19d07bd39e6223991976474bc79671ba8aa0f0

>---------------------------------------------------------------

commit 634e271c12bb8becf30a1e667f593f137d222261
Author: MarcosPividori <marcos.pividori at gmail.com>
Date:   Wed Jul 6 11:39:53 2016 -0300

    Fix details.


>---------------------------------------------------------------

634e271c12bb8becf30a1e667f593f137d222261
 src/mlpack/core/tree/spill_tree/spill_tree_impl.hpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/mlpack/core/tree/spill_tree/spill_tree_impl.hpp b/src/mlpack/core/tree/spill_tree/spill_tree_impl.hpp
index bb2dfd7..6ce80bd 100644
--- a/src/mlpack/core/tree/spill_tree/spill_tree_impl.hpp
+++ b/src/mlpack/core/tree/spill_tree/spill_tree_impl.hpp
@@ -451,8 +451,8 @@ void SpillTree<MetricType, StatisticType, MatType, BoundType, SplitType>::
               const double rho)
 {
   // We need to expand the bounds of this node properly.
-  for(size_t i = 0; i < pointsIndex->size(); i++)
-    bound |= dataset->cols(pointsIndex[i], pointsIndex[i]);
+  for(size_t i = 0; i < points->size(); i++)
+    bound |= dataset->cols(points[i], points[i]);
 
   // Calculate the furthest descendant distance.
   furthestDescendantDistance = 0.5 * bound.Diameter();
@@ -462,7 +462,7 @@ void SpillTree<MetricType, StatisticType, MatType, BoundType, SplitType>::
   {
     pointsIndex = new std::vector<size_t>();
     pointsIndex->swap(points);
-    count = pointsIndex().size();
+    count = pointsIndex->size();
     return; // We can't split this.
   }
 
@@ -476,7 +476,7 @@ void SpillTree<MetricType, StatisticType, MatType, BoundType, SplitType>::
   {
     pointsIndex = new std::vector<size_t>();
     pointsIndex->swap(points);
-    count = pointsIndex().size();
+    count = pointsIndex->size();
     return; // We can't split this.
   }
 




More information about the mlpack-git mailing list