<p>In the main loop inside SGD::Optimize function,</p>

<p>At the beginning of a rotation on training Samples and if shuffle is enabled, we call arma::shuffle on visitationOrder vector to randomize the order in which the SGD will revisit the samples next time.</p>

<p>Since, arma::shuffle relies on a random number generator, whenever it is called, the armadillo library does not seem to reset/change the seed value for the rng, hence, I think it would be a good idea to reset the seed value before calling arma::shuffle on visitationOrder at line 83 by calling arma::arma_rng::set_seed_random() or another appropriate function.</p>

<p>Regards.</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/issues/608">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFCZP_poyBlaGUpRmWJEvsAuQ0Hl6ks5p170wgaJpZM4IDoSE.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/issues/608"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>