<p>The function already finished, if you need it and decided where should I placed it, please give me a reply.</p>

<p>Example : </p>

<p>//.....after training<br>
arma::Mat encoderMatrix = parameters.submat(0, 0, hiddenSize - 1, VisibleSize - 1);<br>
exportFiltersToPGMGrid("encoder_result.pgm", encoderMatrix.t(), 28, 28);</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-142807545">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFKFldGD4bqBRaxzkPptEG4CSoLCJks5o03IRgaJpZM4GA0ZB.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-142807545"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>