<p>In <a href="https://github.com/mlpack/mlpack/pull/694#discussion_r71871305">src/mlpack/core/data/imputation_methods/custom_imputation.hpp</a>:</p>
<pre style='color:#555'>&gt; +    }
&gt; +    else
&gt; +    {
&gt; +      for (size_t i = 0; i &lt; input.n_rows; ++i)
&gt; +      {
&gt; +        if (input(i, dimension) == mappedValue ||
&gt; +            std::isnan(input(i, dimension)))
&gt; +        {
&gt; +          input(i, dimension) = customValue;
&gt; +        }
&gt; +      }
&gt; +    }
&gt; +  }
&gt; +
&gt; + private:
&gt; +  T customValue;
</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/028c217057410e2e75691c32bf062202ce5dca3f#r71871305">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJ4bFK4qHjU21cSyd89o2IUrMgZp3qjDks5qYLjqgaJpZM4I07W-">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFClalCJjsTw8yh6Lyyxop88AgNKVks5qYLjqgaJpZM4I07W-.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#r71871305"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>