[mlpack-git] [mlpack/mlpack] Random projection trees (#726)
lozhnikov
notifications at github.com
Fri Aug 5 10:40:39 EDT 2016
> + arma::uvec& distinctSamples,
> + const size_t begin,
> + const size_t count,
> + const size_t numSamples)
> +{
> + arma::Col<size_t> samples;
> +
> + samples.zeros(count);
> +
> + for (size_t i = 0; i < numSamples; i++)
> + samples [ (size_t) math::RandInt(count) ]++;
> +
> + distinctSamples = arma::find(samples > 0);
> +
> + distinctSamples += begin;
> +}
Yes, I remember. That branch has not merged yet. I think it is better to correct that after merging.
---
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/726/files/e14a26f3e209af0608cb61ecaa5e30f253e72e9b#r73703117
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160805/f02f1294/attachment.html>
More information about the mlpack-git
mailing list