<p>I think this cannot work, the function from armadillo will save the parameters directly, but to visualize the training results, you need to do some processing on the encoder matrix. For more details, you can refer to following page</p>

<p><a href="http://deeplearning.stanford.edu/wiki/index.php/Visualizing_a_Trained_Autoencoder">http://deeplearning.stanford.edu/wiki/index.php/Visualizing_a_Trained_Autoencoder</a></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/issues/452#issuecomment-149766953">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFEno6fCn7zBh4wCZ-I1UkqIwIJ7qks5o9vTKgaJpZM4GA0ZB.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/issues/452#issuecomment-149766953"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>