From 3d7e4c8a7b0843d8cdd763fc11ae2e21472b4bcf Mon Sep 17 00:00:00 2001 From: Ryan Curtin Date: Tue, 25 Apr 2017 15:59:54 -0400 Subject: [PATCH] Not to remove, it turns out... --- src/mlpack/methods/rann/ra_search_rules.hpp | 14 +++++++------- src/mlpack/methods/rann/ra_search_rules_impl.hpp | 1 - 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/mlpack/methods/rann/ra_search_rules.hpp b/src/mlpack/methods/rann/ra_search_rules.hpp index 4772ec46f2..01aa65b32c 100644 --- a/src/mlpack/methods/rann/ra_search_rules.hpp +++ b/src/mlpack/methods/rann/ra_search_rules.hpp @@ -270,25 +270,25 @@ class RASearchRules //! The instantiated metric. MetricType& metric; - //! Whether to sample at leaves or just use all of it + //! Whether to sample at leaves or just use all of it. bool sampleAtLeaves; - //! Whether to do exact computation on the first leaf before any sampling + //! Whether to do exact computation on the first leaf before any sampling. bool firstLeafExact; - //! The limit on the largest node that can be approximated by sampling + //! The limit on the largest node that can be approximated by sampling. size_t singleSampleLimit; - //! The minimum number of samples required per query + //! The minimum number of samples required per query. size_t numSamplesReqd; - //! The number of samples made for every query + //! The number of samples made for every query. arma::Col numSamplesMade; - //! The sampling ratio + //! The sampling ratio. double samplingRatio; - // TO REMOVE: just for testing + //! The number of distance calculations performed during search. size_t numDistComputations; //! If the query and reference set are identical, this is true. diff --git a/src/mlpack/methods/rann/ra_search_rules_impl.hpp b/src/mlpack/methods/rann/ra_search_rules_impl.hpp index 3bec753040..dc9e9b4555 100644 --- a/src/mlpack/methods/rann/ra_search_rules_impl.hpp +++ b/src/mlpack/methods/rann/ra_search_rules_impl.hpp @@ -135,7 +135,6 @@ double RASearchRules::BaseCase( numSamplesMade[queryIndex]++; - // TO REMOVE numDistComputations++; return distance;