<p>In <a href="https://github.com/mlpack/mlpack/pull/650#discussion_r65278959">src/mlpack/tests/split_data_test.cpp</a>:</p>
<pre style='color:#555'>> @@ -67,17 +83,31 @@ void CheckDuplication(const Row<size_t>& trainLabels,
> BOOST_REQUIRE_EQUAL(counts[i], 1);
> }
>
> -BOOST_AUTO_TEST_CASE(SplitDataSplitResultMat)
> +BOOST_AUTO_TEST_CASE(SplitDataResultMat)
> +{
> + mat input(2, 10);
> + size_t count = 0; // count for putting unique sequential values
> + input.imbue([&count] () { return ++count; });
</pre>
<p>Really neat idea, I propably just used:</p>
<p><code>arma::mat input = arma::reshape(arma::linspace<arma::mat>(0, 19, 20), 2, 10);</code></p>
<p>but your idea is great.</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/650/files/8ad3b900bba6c8535ad94b5af31aaab1de0c64d1#r65278959">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFJhTXGF-QaCa-J8SjlLbKdQgr7Gaks5qHMB9gaJpZM4IneDD">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFNhEqlBvL_RxeRkwQEICXG7k2TjLks5qHMB9gaJpZM4IneDD.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/650/files/8ad3b900bba6c8535ad94b5af31aaab1de0c64d1#r65278959"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>