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

Ryan Curtin notifications at github.com
Wed Aug 17 00:28:57 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);

Maybe just using `regspace()` is the better thing to do here, but I'm indifferent either way.

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


More information about the mlpack-git mailing list