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

Ryan Curtin notifications at github.com
Sat Aug 13 11:54:27 EDT 2016


> +// Gamma distribution for modeling squared distances.
> +#include <mlpack/core/dists/gamma_distribution.hpp>
> +
> +namespace mlpack {
> +namespace neighbor {
> +
> +template <
> +    typename SortPolicy = NearestNeighborSort,
> +    typename ObjectiveFunction = DefaultObjectiveFunction
> +      >
> +class LSHModel
> +{
> + public:
> +
> +   //! Empty Constructor. Do nothing
> +   LSHModel(){ referenceSet = NULL; };

Maybe consider using initialization lists instead:

```
LSHModel() : referenceSet(NULL) { }
```

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


More information about the mlpack-git mailing list