<p>In <a href="https://github.com/mlpack/mlpack/pull/740#discussion_r72339180">src/mlpack/core/data/imputer.hpp</a>:</p>
<pre style='color:#555'>> + const std::string& missingValue)
> + {
> + if (columnMajor)
> + {
> + for (size_t i = 0; i < input.n_rows; ++i)
> + {
> + if (mapper.NumMappings(i) > 0)
> + {
> + T mappedValue = static_cast<T>(mapper.UnmapValue(missingValue, i));
> + strategy.Impute(input, mappedValue, i, columnMajor);
> + }
> + }
> + }
> + else
> + {
> + for (size_t i = 0; i < input.n_rows; ++i)
</pre>
<p>I fixed it.<br>
I got a little creative and added a user friendly output messages in the commit.</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/740/files/645c58d4f0d413b2fe0c97766b1aa4bc486e21bb#r72339180">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJ4bFGXXktOwblnMrovHpjxy61FoZ799ks5qZnsVgaJpZM4JU0It">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFLbzQE58TpsU2TNrNM_ZD7Kl6c5nks5qZnsVgaJpZM4JU0It.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/740/files/645c58d4f0d413b2fe0c97766b1aa4bc486e21bb#r72339180"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>