<p>In <a href="https://github.com/mlpack/mlpack/pull/694#discussion_r68393167">src/mlpack/core/data/imputation_methods/mean_imputation.hpp</a>:</p>
<pre style='color:#555'>> + if (input(i, dimension) == mappedValue)
> + {
> + targets.push_back(std::make_pair(i, dimension));
> + }
> + else
> + {
> + elems++;
> + sum += input(i, dimension);
> + }
> + }
> + }
> + else
> + {
> + for (size_t i = 0; i < input.n_cols; ++i)
> + {
> + if (input(dimension, i) == mappedValue)
</pre>
<p>I think we can omit the check</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/d8618ec909005b0453f0a3803ac1e6cc5e588f1f#r68393167">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFKuq8DEgWg6dPzUkRPQyfxteQXzFks5qO9LQgaJpZM4I07W-">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFPI4uoNuEXf1IMdL7ltVwUWyZetyks5qO9LQgaJpZM4I07W-.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/d8618ec909005b0453f0a3803ac1e6cc5e588f1f#r68393167"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>