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

MarcosPividori notifications at github.com
Sat Aug 6 11:23:36 EDT 2016


> +
> +template<typename MetricType,
> +         typename StatisticType,
> +         typename MatType,
> +         template<typename HyperplaneMetricType> class HyperplaneType,
> +         template<typename SplitMetricType, typename SplitMatType>
> +             class SplitType>
> +void SpillTree<MetricType, StatisticType, MatType, HyperplaneType, SplitType>::
> +    SplitNode(std::vector<size_t>& points,
> +              const size_t maxLeafSize,
> +              const double tau,
> +              const double rho)
> +{
> +  // We need to expand the bounds of this node properly.
> +  for (size_t i = 0; i < points.size(); i++)
> +    bound |= dataset->cols(points[i], points[i]);

I have simplified it in: https://github.com/mlpack/mlpack/pull/747/commits/071588457415094e99883774af541075e3858c22

---
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/a71b57caa90311f5542180bc0553449c3691395d#r73787518
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160806/2345d276/attachment.html>


More information about the mlpack-git mailing list