<p>Hi there Ozair,</p>

<p>It's actually a bad idea for debugging and reproducibility to set the seed.  Setting the seed (preferably by calling <code>math::RandomSeed()</code>, but the Armadillo function you mentioned works too) should be done at a higher level than SGD.  If the seed is set inside of the SGD class, then if I have a bug that I am trying to track down, it becomes very hard if I can't easily set the seed to one specific value (or leave it as the default).  If anything it may be worth adding a bit to the documentation or one of the tutorials (probably a tutorial is the better place) noting that it might be useful to set the random seed at a higher level.</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#issuecomment-207816452">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFBSReaCiPw5sDDW3lna42_TvaDTYks5p19VVgaJpZM4IDoSE.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#issuecomment-207816452"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>