<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'>> + }
> + else
> + {
> + for (size_t i = 0; i < input.n_rows; ++i)
> + {
> + if (input(i, dimension) == mappedValue ||
> + std::isnan(input(i, dimension)))
> + {
> + input(i, dimension) = customValue;
> + }
> + }
> + }
> + }
> +
> + private:
> + T customValue;
</pre>
<p>updated!</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<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>