<p>In <a href="https://github.com/mlpack/mlpack/pull/694#discussion_r71871714">src/mlpack/core/data/imputation_methods/mean_imputation.hpp</a>:</p>
<pre style='color:#555'>&gt; +    {
&gt; +      output(target.first, target.second) = mean;
&gt; +    }
&gt; +  }
&gt; +
&gt; +  /**
&gt; +   * Impute function searches through the input looking for mappedValue and
&gt; +   * replaces it with the mean of the given dimension. The result is overwritten
&gt; +   * to the input matrix.
&gt; +   *
&gt; +   * @param input Matrix that contains mappedValue.
&gt; +   * @param mappedValue Value that the user wants to get rid of.
&gt; +   * @param dimension Index of the dimension of the mappedValue.
&gt; +   * @param columnMajor State of whether the input matrix is columnMajor or not.
&gt; +   */
&gt; +  void Impute(arma::Mat&lt;T&gt;&amp; input,
</pre>
<p>I wanted to reuse the codes of the overloads, but <br>
Impute(input, input, ...) searches through all values inside the matrix (to produce output), while Impute(input) searches through only with the given dimension.<br>
It would not be very efficient. What do you think?</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/028c217057410e2e75691c32bf062202ce5dca3f#r71871714">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJ4bFI0xBHZ41lh9zNUW7EOaZHiFfuXLks5qYLnRgaJpZM4I07W-">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFBRgLK0cwtA6m-VH0G6pYCfIutFPks5qYLnRgaJpZM4I07W-.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/028c217057410e2e75691c32bf062202ce5dca3f#r71871714"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>