<blockquote>
<p>if we train an autoencoder with a single hidden unit on the same input over and over again, then wouldn't the input that maximally activates that single hidden unit be the same input? </p>
</blockquote>

<p>Do not know what do you mean by this. Could you describe it further?Base on your description</p>

<pre><code>arma::mat trainData;

for(size_t i = 0; i != 10; ++i)
{
  SparseAutoencoder&lt;&gt; sa(....);
  //after training
  MaximalInputs(sa.Parameters(), output);
  //omit trouble some begin, end
  bool isSame =  std::equal(std::begin(output), std::end(output), std::begin(outputBuffer));
  BOOST_REQUIRE(is_same == true);
}
</code></pre>

<p>But is this test make sense?</p>

<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-151761289">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFKNhotQo27BGIdPblw3zXfBEYygzks5pAH33gaJpZM4GWT_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-151761289"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>