[mlpack-git] [mlpack/mlpack] General greedy traverser. (#762)

MarcosPividori notifications at github.com
Fri Aug 19 11:34:59 EDT 2016


> +    RuleType& rule) :
> +    rule(rule),
> +    numPrunes(0)
> +{ /* Nothing to do. */ }
> +
> +template<typename TreeType, typename RuleType>
> +void GreedySingleTreeTraverser<TreeType, RuleType>::Traverse(
> +    const size_t queryIndex,
> +    TreeType& referenceNode)
> +{
> +  // If we have reached a leaf node, run the base case as necessary.
> +  if (referenceNode.IsLeaf())
> +  {
> +    for (size_t i = 0; i < referenceNode.NumPoints(); ++i)
> +      rule.BaseCase(queryIndex, referenceNode.Point(i));
> +  }

Yeah, you are right! Done in: https://github.com/mlpack/mlpack/pull/762/commits/acb134606a30ce2409cf56806e5625030e2ca66a

-- 
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/762/files/0484cfda36ef33e7b8ca5db46b7360369af161cc#r75503078
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160819/1356b8b1/attachment.html>


More information about the mlpack-git mailing list