I ran into a circular reference while testing. To be more precise:<br>
LinearLayer contains Optimizer which holds a reference to the container.<br>
Hence simple copy will copy the reference even though the parent object has<br>
changed.<br>
<br>
On Fri, Jan 29, 2016 at 2:10 PM, Ryan Curtin <notifications@github.com><br>
wrote:<br>
<br>
> Want to file a pull request? Maybe we could incorporate your code.<br>
><br>
> —<br>
> Reply to this email directly or view it on GitHub<br>
> <https://github.com/mlpack/mlpack/issues/510#issuecomment-176546929>.<br>
><br>
<br>
<br>
<br>
-- <br>
Joseph Chakravarti Mariadassou<br>
http://thesundayprogrammer.com<br>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/mlpack/mlpack/issues/510#issuecomment-176919687">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFMDmC8dBRLPxuDGMZYzdveXTgEAiks5pe7KkgaJpZM4HOq_n.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/510#issuecomment-176919687"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>