[mlpack-git] master: Fix direction of vector. (8c91b01)
gitdub at mlpack.org
gitdub at mlpack.org
Wed Nov 16 17:11:28 EST 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/cfb86996cc3e932ece432309da13fb6403f07066...8c91b011ab96f335c912b03eb5a50b6a4bff26ed
>---------------------------------------------------------------
commit 8c91b011ab96f335c912b03eb5a50b6a4bff26ed
Author: Ryan Curtin <ryan at ratml.org>
Date: Wed Nov 16 17:11:28 2016 -0500
Fix direction of vector.
This should resolve the tests that are failing in debug mode.
>---------------------------------------------------------------
8c91b011ab96f335c912b03eb5a50b6a4bff26ed
src/mlpack/methods/det/dtree_impl.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mlpack/methods/det/dtree_impl.hpp b/src/mlpack/methods/det/dtree_impl.hpp
index 5625006..fae801d 100644
--- a/src/mlpack/methods/det/dtree_impl.hpp
+++ b/src/mlpack/methods/det/dtree_impl.hpp
@@ -67,7 +67,7 @@ namespace details
const size_t minLeafSize)
{
typedef std::pair<ElemType, size_t> SplitItem;
- arma::vec dimVec = data(dim, arma::span(start, end - 1));
+ arma::vec dimVec = data(dim, arma::span(start, end - 1)).t();
// We sort these, in-place (it's a copy of the data, anyways).
std::sort(dimVec.begin(), dimVec.end());
More information about the mlpack-git
mailing list