<blockquote>
<p>can you also modify the other ann optimizer classes?</p>
</blockquote>
<p>No problem</p>
<blockquote>
<p>I attempted to keep the interfaces using references, and not pointers</p>
</blockquote>
<p>Nice suggestion, but I think what you mean is</p>
<pre><code>RMSPROP(DecomposableFunctionType& function, //reference, not pointer
const double lr = 0.01,
const double alpha = 0.99,
const double eps = 1e-8) :
function(&function),
lr(lr),
alpha(alpha),
eps(eps)
</code></pre>
<p>Thanks for closing replicated issue</p>
<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/513#issuecomment-178175258">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFN9kcprwlbrrN1ArmKVLGSn-rleaks5pf7kegaJpZM4HQHGn.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/513#issuecomment-178175258"></link>
<meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>