[mlpack-git] [mlpack/mlpack] Modeling LSH For Performance Tuning (#749)

Ryan Curtin notifications at github.com
Sat Aug 13 12:01:21 EDT 2016


> +using std::flush;
> +using std::endl;
> +
> +namespace mlpack {
> +namespace neighbor {
> +
> +// Constructor sets variables and trains the object.
> +template <typename SortPolicy, typename ObjectiveFunction>
> +LSHModel<SortPolicy, ObjectiveFunction>::
> +LSHModel(const arma::mat &referenceSet,
> +         const double sampleSize,
> +         const size_t k)
> +{
> +  // We don't own the set - we just point to it.
> +  ownsSet = false;
> +  this->referenceSet = &referenceSet;

Initialization lists might be nicer to use here, too.

-- 
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/749/files/cdcb575826bfb3bd0ef4cafacf465435b3d6d144#r74688613
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160813/30ec77f4/attachment.html>


More information about the mlpack-git mailing list