[mlpack-git] [mlpack/mlpack] Spill trees (#747)

MarcosPividori notifications at github.com
Wed Aug 17 15:09:13 EDT 2016

> @@ -375,6 +375,9 @@ inline double NeighborSearchRules<SortPolicy, MetricType, TreeType>::Rescore(
>    if (oldScore == DBL_MAX)
>      return oldScore;
> +  if (oldScore == SortPolicy::BestDistance())
> +    return oldScore;

Yes, I completely agree. I added this modification to avoid calculating the bounds as there is no possibility of prunning when score is `0`. I agree that it would be possible to prune when score is 0, but we can't because of `B_2()`.
Updated the code in : https://github.com/mlpack/mlpack/pull/747/commits/e4cf1fd252b710809654515dccc30a299d0380e2

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160817/03d4d37f/attachment-0001.html>

More information about the mlpack-git mailing list