<p>In <a href="https://github.com/mlpack/mlpack/pull/451#discussion_r40166501">src/mlpack/tests/sparse_autoencoder_test_2.cpp</a>:</p>
<pre style='color:#555'>&gt; +#include &lt;mlpack/methods/ann/layer/base_layer.hpp&gt;
&gt; +
&gt; +#include &lt;boost/test/unit_test.hpp&gt;
&gt; +#include &quot;old_boost_test_definitions.hpp&quot;
&gt; +
&gt; +using namespace mlpack;
&gt; +using namespace arma;
&gt; +
&gt; +using FSigmoidLayer = ann::SigmoidLayer&lt;ann::LazyLogisticFunction&gt;;
&gt; +
&gt; +//sparse autoencoder function
&gt; +using SAEF = ann::SparseAutoencoderFunction&lt;FSigmoidLayer, FSigmoidLayer&gt;;
&gt; +//sparse autoencoder function greedy
&gt; +using SAEFG = ann::SparseAutoencoderFunction&lt;FSigmoidLayer, FSigmoidLayer, std::true_type&gt;;
&gt; +
&gt; +BOOST_AUTO_TEST_SUITE(SparseAutoencoderTest2);
</pre>
<p>Just a note -- when this is merged, we can remove the old <code>sparse_autoencoder_test.cpp</code> and revert this to <code>SparseAutoencoderTest</code> instead of <code>SparseAutoencoderTest2</code>.</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/451/files#r40166501">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFHfSjmaDLI0zLXoUF7ogosZSmERzks5o0ggzgaJpZM4GAqt4.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/451/files#r40166501"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>