[mlpack-git] master: I fixed a little bit, but I know this doesn't fix everything. (9648243)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 22:00:21 EST 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40
>---------------------------------------------------------------
commit 96482435505a780f8e140f65799db78b9d370861
Author: Ryan Curtin <ryan at ratml.org>
Date: Tue Sep 16 20:33:00 2014 +0000
I fixed a little bit, but I know this doesn't fix everything.
>---------------------------------------------------------------
96482435505a780f8e140f65799db78b9d370861
src/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp b/src/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp
index 3f527cf..33ed384 100644
--- a/src/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp
+++ b/src/mlpack/core/tree/rectangle_tree/x_tree_split_impl.hpp
@@ -707,7 +707,8 @@ void XTreeSplit<DescentType, StatisticType, MatType>::InsertNodeIntoTree(
RectangleTree<XTreeSplit<DescentType, StatisticType, MatType>, DescentType, StatisticType, MatType>* srcNode)
{
destTree->Bound() |= srcNode->Bound();
- destTree->Children()[destTree->NumChildren()++] = srcNode;
+ destTree->Children().push_back(srcNode);
+ destTree->NumChildren()++;
}
}; // namespace tree
More information about the mlpack-git
mailing list