[mlpack-git] [mlpack/mlpack] Spill trees (#747)
notifications at github.com
Thu Aug 11 10:00:05 EDT 2016
> + }
> + std::vector<size_t> leftPoints, rightPoints;
> + // Split the node.
> + overlappingNode = SplitPoints(tau, rho, points, leftPoints, rightPoints);
> + // We don't need the information in points, so lets clean it.
> + std::vector<size_t>().swap(points);
> + // Now we will recursively split the children by calling their constructors
> + // (which perform this splitting process).
> + left = new SpillTree(this, leftPoints, tau, maxLeafSize, rho);
> + right = new SpillTree(this, rightPoints, tau, maxLeafSize, rho);
> + // Update count number, to represent the number of descendant points.
> + count = left->NumDescendants() + right->NumDescendants();
Hi @rcurtin ,
Yes, I agree with your proposal. I think it is the best option that we have, unfortunately.
I have implemented that in https://github.com/mlpack/mlpack/pull/747/commits/3b15fdff5817e124b1a33c1dd390da71b2fce8c0.
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...
More information about the mlpack-git