[mlpack-git] [mlpack/mlpack] Spill trees (#747)
Ryan Curtin
notifications at github.com
Sat Aug 13 01:05:49 EDT 2016
> + typename MatType,
> + template<typename HyperplaneMetricType> class HyperplaneType,
> + template<typename SplitBoundT, typename SplitMatT> class SplitType>
> +void SpillSearch<MetricType, MatType, HyperplaneType, SplitType>::
> +Search(const MatType& querySet,
> + const size_t k,
> + arma::Mat<size_t>& neighbors,
> + arma::mat& distances)
> +{
> + if (Naive() || SingleMode())
> + neighborSearch.Search(querySet, k, neighbors, distances);
> + else
> + {
> + // For Dual Tree Search on SpillTrees, the queryTree must be built with non
> + // overlapping (tau = 0).
> + Tree queryTree(querySet, 0 /* tau */, leafSize, rho);
It seems that the entire necessity for the `SpillSearch` class arises from this line; is that correct, or have I overlooked some other difference between `SpillSearch` and `NeighborSearch`?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/747/files/fe090ee13c7cad79e2b7eb8b6690628ba3ead1ed#r74681832
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160812/d47e5ebd/attachment.html>
More information about the mlpack-git
mailing list