<p>In <a href="https://github.com/mlpack/mlpack/pull/696#discussion_r67214605">src/mlpack/methods/edge_boxes/feature_extraction_impl.hpp</a>:</p>
<pre style='color:#555'>&gt; +
&gt; +      pos_loc = arma::shuffle(pos_loc);
&gt; +      neg_loc = arma::shuffle(neg_loc);
&gt; +
&gt; +      arma::umat loc(n_patches_per_gt * 2, 2);
&gt; +      //cout &lt;&lt; &quot;pos_loc size: &quot; &lt;&lt; arma::size(pos_loc) &lt;&lt; &quot; neg_loc size: &quot; &lt;&lt; arma::size(neg_loc) &lt;&lt; endl;
&gt; +      //cout &lt;&lt; &quot;n_patches_per_gt = &quot; &lt;&lt; n_patches_per_gt &lt;&lt; endl;
&gt; +      for(size_t i = 0; i &lt; n_patches_per_gt; ++i)
&gt; +      {
&gt; +        loc.row(i) = arma::ind2sub(arma::size(dis.n_rows, dis.n_cols), pos_loc(i) ).t();
&gt; +        //cout &lt;&lt; &quot;pos_loc: &quot; &lt;&lt; loc(i, 0) &lt;&lt; &quot;, &quot; &lt;&lt; loc(i, 1) &lt;&lt; endl;
&gt; +      }
&gt; +
&gt; +      for(size_t i = n_patches_per_gt; i &lt; 2 * n_patches_per_gt; ++i)
&gt; +      {
&gt; +        loc.row(i) = arma::ind2sub(arma::size(dis.n_rows, dis.n_cols), neg_loc(i) ).t();
</pre>
<p>Yes i get it now. it should be neg_loc(i - n_patches_per_gt)</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/696/files/b38b688edfc4c2ee8bf461240f8384a70575d3a4#r67214605">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFIfChU_HeI7soB-7gfaM5UBMxH6wks5qMD-9gaJpZM4I1lnr">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFMF08JyrefhLce3Cc-KzG_TSLnU_ks5qMD-9gaJpZM4I1lnr.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/696/files/b38b688edfc4c2ee8bf461240f8384a70575d3a4#r67214605"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>