<p>In <a href="https://github.com/mlpack/mlpack/pull/684#discussion_r66611351">src/mlpack/tests/aknn_test.cpp</a>:</p>
<pre style='color:#555'>> +BOOST_AUTO_TEST_SUITE(AKNNTest);
> +
> +/**
> + * Test the dual-tree nearest-neighbors method with different values for
> + * epsilon. This uses both a query and reference dataset.
> + *
> + * Errors are produced if the results are not according to relative error.
> + */
> +BOOST_AUTO_TEST_CASE(DualTreeVsNaive1)
> +{
> + arma::mat dataset;
> +
> + if (!data::Load("test_data_3_1000.csv", dataset))
> + BOOST_FAIL("Cannot load test dataset test_data_3_1000.csv!");
> +
> + KNN naive(dataset, true);
</pre>
<p>It might save a few seconds here if you don't use naive mode (brute-force search). We can assume exact KNN works because it is tested in knn_test.cpp. (the same applies for the KFN tests)</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/pull/684/files/07879a2cc79b35b10d7fae687d6e27ad90a9f2d7#r66611351">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFGGnLCp5nktIvNrbZGiNEF75QaJ9ks5qKWTEgaJpZM4IvhJu">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFDhHteC9KeQfFVl2uYbZRe_OcffWks5qKWTEgaJpZM4IvhJu.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/mlpack/mlpack/pull/684/files/07879a2cc79b35b10d7fae687d6e27ad90a9f2d7#r66611351"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>