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;