<p>In <a href="https://github.com/mlpack/mlpack/pull/523#discussion_r59445126">src/mlpack/core/util/split_data.hpp</a>:</p>
<pre style='color:#555'>&gt; +             arma::Row&lt;U&gt; const &amp;inputLabel,
&gt; +             arma::Mat&lt;T&gt; &amp;trainData,
&gt; +             arma::Mat&lt;T&gt; &amp;testData,
&gt; +             arma::Row&lt;U&gt; &amp;trainLabel,
&gt; +             arma::Row&lt;U&gt; &amp;testLabel)
&gt; +  {
&gt; +    size_t const testSize =
&gt; +        static_cast&lt;size_t&gt;(input.n_cols * testRatio);
&gt; +    size_t const trainSize = input.n_cols - testSize;
&gt; +    trainData.set_size(input.n_rows, trainSize);
&gt; +    testData.set_size(input.n_rows, testSize);
&gt; +    trainLabel.set_size(trainSize);
&gt; +    testLabel.set_size(testSize);
&gt; +
&gt; +    using Col = arma::Col&lt;size_t&gt;;
&gt; +    arma::arma_rng::set_seed(seed);
</pre>
<p>I don't think there's any need for this, we should just assume that the user has called <code>math::RandomSeed()</code> appropriately.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/mlpack/mlpack/pull/523/files/860256202d7cba23dd3500a05e36ecd351f1d673#r59445126">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFIHZ3C7Q16OTAZSM2DYrsHD4He7Pks5p2_0LgaJpZM4HhWF3.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/523/files/860256202d7cba23dd3500a05e36ecd351f1d673#r59445126"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>