<blockquote>
<p>How long does it take to train the sparse autoencoder on the data from display_network.m, and how big is that data</p>
</blockquote>

<p>If using golden model, I think we can skip the training process but feed the data MaximalInputs directly.</p>

<pre><code>arma::mat parameters(5, 5);
parameters&lt;&lt;.....//insert data same as the one feed to matlab
arma::mat goldenData(2,2);
goldenData&lt;&lt;.....//insert the data same as the output of matlab

arma::mat output;
MaximalInputs(parameters, output);
//compare the output and goldenData
</code></pre>

<blockquote>
<p>Can you elaborate?<br>
Sure, the check I want to perform is </p>
</blockquote>

<pre><code>auto const squareRows = static_cast&lt;arma::uword&gt;(std::sqrt(paramTemp.n_rows));
if(squareRows * squareRows != paramTemp.n_cols)
{
    throw std::range_error("The visible size of the parameters must be integer greater than 0");
}
</code></pre>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/pull/465#issuecomment-152037601">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFAWHeQ4607E0BH8SvV7tk7NbOwEuks5pAVyBgaJpZM4GWT_f.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/465#issuecomment-152037601"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>