<p>In <a href="https://github.com/mlpack/mlpack/pull/721#discussion_r70432151">src/mlpack/methods/ann/layer/one_hot_layer.hpp</a>:</p>
<pre style='color:#555'>&gt; @@ -58,7 +58,7 @@ class OneHotLayer
&gt;      output = inputActivations;
&gt;      output.zeros();
&gt;  
&gt; -    arma::uword maxIndex;
&gt; +    arma::uword maxIndex = 0;
</pre>
<p>I looked through the armadillo code, <code>op_min::direct_min</code> equates <code>index_of_min_val</code> to zero by default.</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, <a href="https://github.com/mlpack/mlpack/pull/721/files/640f3a7859ea8d400bc6fed6b4395c2291ba0259..ee2a8a1461a33edd830747dccde117ac2cfb12b7#r70432151">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFBNAvbTT_c9xkEdpyOCTIa9OockWks5qU49zgaJpZM4JKXF9">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFBLeI8ZWCj5i4uW4-izD-3Nc0E7tks5qU49zgaJpZM4JKXF9.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/721/files/640f3a7859ea8d400bc6fed6b4395c2291ba0259..ee2a8a1461a33edd830747dccde117ac2cfb12b7#r70432151"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>