[mlpack-git] master: Fix error. kdtree where should be a balltree. (903be7e)

gitdub at mlpack.org gitdub at mlpack.org
Fri May 27 20:21:36 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/3d1ed0fa731b4f34d0c02ae63c37d4106e23a9f8...2fe9e82b63507ef60440c22c93d85d058023535c

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

commit 903be7eb8583e81bbe76f858ec8cc4ed91d50408
Author: MarcosPividori <marcos.pividori at gmail.com>
Date:   Fri May 27 21:11:43 2016 -0300

    Fix error. kdtree where should be a balltree.


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

903be7eb8583e81bbe76f858ec8cc4ed91d50408
 src/mlpack/methods/neighbor_search/ns_model_impl.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mlpack/methods/neighbor_search/ns_model_impl.hpp b/src/mlpack/methods/neighbor_search/ns_model_impl.hpp
index 28c5a0b..e4aa7c1 100644
--- a/src/mlpack/methods/neighbor_search/ns_model_impl.hpp
+++ b/src/mlpack/methods/neighbor_search/ns_model_impl.hpp
@@ -320,7 +320,7 @@ void NSModel<SortPolicy>::BuildModel(arma::mat&& referenceSet,
       {
         std::vector<size_t> oldFromNewReferences;
         typename NSType<tree::BallTree>::Tree* ballTree =
-            new typename NSType<tree::KDTree>::Tree(std::move(referenceSet),
+            new typename NSType<tree::BallTree>::Tree(std::move(referenceSet),
             oldFromNewReferences, leafSize);
         ballTreeNS = new NSType<tree::BallTree>(ballTree, singleMode);
 




More information about the mlpack-git mailing list