<p>Maybe you can provide more information about the problem with the existing layers? I'm not sure I completely understand the problem.</p>

<p>I don't like the idea duplicating code, maybe we can workaround the problem or change the existing layer interface. I guess it wouldn't be a huge problem if we change the layers, so that they can be initialized with an activation function.</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#issuecomment-150193738">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFCsNWi91FVDuKkhHSBjInwzAP367ks5o-MJWgaJpZM4GAqt4.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#issuecomment-150193738"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>