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

Ryan Curtin notifications at github.com
Sat Aug 13 01:07:48 EDT 2016


> +template<typename RuleType>
> +void SpillTree<MetricType, StatisticType, MatType, HyperplaneType, SplitType>::
> +SingleTreeTraverser<RuleType>::Traverse(
> +    const size_t queryIndex,
> +    SpillTree<MetricType, StatisticType, MatType, HyperplaneType, SplitType>&
> +        referenceNode)
> +{
> +  // If we are a leaf, run the base case as necessary.
> +  if (referenceNode.IsLeaf())
> +  {
> +    for (size_t i = 0; i < referenceNode.NumPoints(); ++i)
> +      rule.BaseCase(queryIndex, referenceNode.Point(i));
> +  }
> +  else
> +  {
> +    if(referenceNode.Overlap())

This is a minor comment but there is a missing space here after the `if`. :)

-- 
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#r74681853
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160812/dfe0bec9/attachment.html>


More information about the mlpack-git mailing list