[mlpack-git] [mlpack/mlpack] Issue261/lsh test (#605)

Ryan Curtin notifications at github.com
Tue Apr 5 12:51:04 EDT 2016


>  
>  using namespace std;
>  using namespace mlpack;
>  using namespace mlpack::neighbor;
>  
> +double compute_recall(
> +    arma::Mat<size_t> LSHneighbors, 
> +    arma::Mat<size_t> groundTruth)
> +{
> +  const int n_queries = LSHneighbors.n_cols;
> +  const int n_neigh = LSHneighbors.n_rows;

Really minor style note: we should avoid underscores in variable names... I'd suggest just `queries` and `neigh`.

---
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/605/files/b0e5d740b4835ef4f65320d0dced2930a584bf53#r58573898
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160405/a1187197/attachment.html>


More information about the mlpack-git mailing list