<p>In <a href="https://github.com/mlpack/mlpack/pull/694#discussion_r69915517">src/mlpack/core/data/imputer.hpp</a>:</p>
<pre style='color:#555'>&gt; +        //&quot;IncrementPolicy&quot;);
&gt; +  }
&gt; +
&gt; +  /**
&gt; +  * Given an input dataset, replace missing values with given imputation
&gt; +  * strategy.
&gt; +  *
&gt; +  * @param input Input dataset to apply imputation.
&gt; +  * @param output Armadillo matrix to save the results
&gt; +  * @oaran missingValue User defined missing value; it can be anything.
&gt; +  * @param dimension Dimension to apply the imputation.
&gt; +  */
&gt; +  void Impute(const arma::Mat&lt;T&gt;&amp; input,
&gt; +              arma::Mat&lt;T&gt;&amp; output,
&gt; +              const std::string&amp; missingValue,
&gt; +              const size_t dimension)
</pre>
<p>I think that many times the user will want to impute without copying the matrix; this will especially make a difference when the matrix is large.  Should we also provide an overload with just one matrix that will be modified?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">&mdash;<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/mlpack/mlpack/pull/694/files/a8818316a04506530e2269a2e0a32ba2f6a1c83b#r69915517">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFImUajdIoI7i2nrQ9WqklXNwuN6Eks5qTQuugaJpZM4I07W-">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFLjeIchfvtuOwjG_YwAOWJTogRbHks5qTQuugaJpZM4I07W-.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/694/files/a8818316a04506530e2269a2e0a32ba2f6a1c83b#r69915517"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>