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

MarcosPividori notifications at github.com
Tue Aug 16 16:47:41 EDT 2016


> +  // and points with projection value greater than zero are included in
> +  // rightPoints.
> +  leftPoints.resize(left);
> +  rightPoints.resize(right);
> +  for (size_t i = 0, rc = 0, lc = 0; i < points.n_elem; i++)
> +  {
> +    if (projections[i] <= 0)
> +    {
> +      leftPoints[lc] = points[i];
> +      lc++;
> +    }
> +    else
> +    {
> +      rightPoints[rc] = points[i];
> +      rc++;
> +    }

Yes, I agree. Done in: https://github.com/mlpack/mlpack/pull/747/commits/dce67ec82adedd7be4c113eea7dec95385f755aa

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


More information about the mlpack-git mailing list