<p>In <a href="https://github.com/mlpack/mlpack/pull/694#discussion_r70570081">src/mlpack/core/data/imputation_methods/custom_imputation.hpp</a>:</p>
<pre style='color:#555'>&gt; +   * Impute function searches through the input looking for mappedValue and
&gt; +   * replaces it with the user-defined custom value of the given dimension.
&gt; +   * The result is overwritten to the input, not creating any copy. Custom value
&gt; +   * must be set when initializing the CustomImputation object.
&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,
&gt; +              const T&amp; mappedValue,
&gt; +              const size_t dimension,
&gt; +              const bool columnMajor = true)
&gt; +  {
&gt; +    // replace the target value to custom value
</pre>
<p>updated</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/2eb675467528574b65fa23d78e4e8d3e6e6ea6c5..6d43aa3b3dcd93fdc1bd3e9918267b59f762f3a1#r70570081">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFLOKSurGMNDFW0AdD4Er2ZvHnME4ks5qVISvgaJpZM4I07W-">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFBZN9ndKSPSRyzT-vv3BRKIJJODLks5qVISvgaJpZM4I07W-.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/2eb675467528574b65fa23d78e4e8d3e6e6ea6c5..6d43aa3b3dcd93fdc1bd3e9918267b59f762f3a1#r70570081"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>