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

Ryan Curtin notifications at github.com
Wed Aug 17 14:50:31 EDT 2016


> +    right(NULL),
> +    parent(NULL),
> +    count(0),
> +    pointsIndex(NULL),
> +    overlappingNode(false),
> +    hyperplane(),
> +    bound(data.n_rows),
> +    parentDistance(0), // Parent distance for the root is 0: it has no parent.
> +    dataset(&data),
> +    localDataset(false)
> +{
> +  arma::Col<size_t> points;
> +  if (dataset->n_cols > 0)
> +    // Fill points with all possible indexes: 0 .. (dataset->n_cols - 1).
> +    points = arma::linspace<arma::Col<size_t>>(0, dataset->n_cols - 1,
> +        dataset->n_cols);

I see, `regspace()` was introduced in 6.700, so let's not worry about that now.  Maybe someday when the minimum supported Armadillo version is that or higher we can make all the changes, but it is too much work to backport it for such a minor reason.

-- 
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/b334674a12817b3e4b3f37ac6f99eb52bfd3e44c#r75183449
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160817/8d3e913d/attachment.html>


More information about the mlpack-git mailing list