[mlpack-git] master: Very minor fixes. (d5fb40f)

gitdub at mlpack.org gitdub at mlpack.org
Tue Jul 26 03:33:02 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/acd81e11579f69e75aa8406b2982328c88cf1fde...1e9f0f39ea4443f0d595c395871ea8c6b27443af

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

commit d5fb40fd9bd4beee24f849f1b8c433d46842cebc
Author: Mikhail Lozhnikov <lozhnikovma at gmail.com>
Date:   Tue Jul 26 10:33:02 2016 +0300

    Very minor fixes.


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

d5fb40fd9bd4beee24f849f1b8c433d46842cebc
 src/mlpack/core/tree/vantage_point_tree/traits.hpp          |  4 ++--
 .../core/tree/vantage_point_tree/vantage_point_split.hpp    | 13 -------------
 2 files changed, 2 insertions(+), 15 deletions(-)

diff --git a/src/mlpack/core/tree/vantage_point_tree/traits.hpp b/src/mlpack/core/tree/vantage_point_tree/traits.hpp
index 1b5da5c..99803a8 100644
--- a/src/mlpack/core/tree/vantage_point_tree/traits.hpp
+++ b/src/mlpack/core/tree/vantage_point_tree/traits.hpp
@@ -54,9 +54,9 @@ class TreeTraits<VantagePointTree<MetricType, StatisticType, MatType, BoundType,
   static const bool RearrangesDataset = true;
 
   /**
-   * This is always a binary tree.
+   * This is not a binary tree.
    */
-  static const bool BinaryTree = true;
+  static const bool BinaryTree = false;
 };
 
 } // namespace tree
diff --git a/src/mlpack/core/tree/vantage_point_tree/vantage_point_split.hpp b/src/mlpack/core/tree/vantage_point_tree/vantage_point_split.hpp
index 4f9a987..d9d600b 100644
--- a/src/mlpack/core/tree/vantage_point_tree/vantage_point_split.hpp
+++ b/src/mlpack/core/tree/vantage_point_tree/vantage_point_split.hpp
@@ -79,19 +79,6 @@ class VantagePointSplit
     const size_t begin, const size_t count, size_t& vantagePoint, ElemType& mu);
 
   /**
-   * Find no more then max(numSamples, upperBound) random samples i.e.
-   * random points that belong to the node. Each sample belongs to
-   * the interval [begin, begin + upperBound)
-   *
-   * @param distinctSamples The vector of samples indices.
-   * @param numSamples Maximum number of samples.
-   * @param begin The least index.
-   * @param upperBound The upper bound of indices.
-   */
-  static void GetDistinctSamples(arma::uvec& distinctSamples,
-      const size_t numSamples, const size_t begin, const size_t upperBound);
-
-  /**
    * This method returns true if a point should be assigned to the left subtree
    * i.e. the distance from the point to the vantage point is less then
    * the median value. Otherwise it returns false.




More information about the mlpack-git mailing list