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

Ryan Curtin notifications at github.com
Tue Apr 5 12:54:20 EDT 2016


>      }
> +    if ( !fail )
> +    {
> +      break; //if test passes one time, it is sufficient
> +    }
> +
> +  }
> +  BOOST_REQUIRE(fail == false);
> +   
> +  //Test: Run LSH with varying hash width, keeping all other parameters 
> +  //constant. Compute the recall, i.e. the number of reported neighbors that
> +  //are real neighbors of the query.
> +  //LSH's property is that (with high probability), increasing the hash width
> +  //will increase recall. Epsilon ensures that if noise lightly affects the 
> +  //projections, the test will not fail.

We should probably make this a separate `BOOST_AUTO_TEST_CASE()`, even though we'll have to load the data twice.

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


More information about the mlpack-git mailing list