<p>In <a href="https://github.com/mlpack/mlpack/pull/694#discussion_r66940588">src/mlpack/core/data/imputer.hpp</a>:</p>
<pre style='color:#555'>> + */
> + template <typename T>
> + void Impute(const arma::Mat<T> &input,
> + arma::Mat<T> &output,
> + Mapper &mapper,
> + const std::string &targetValue,
> + const T &customValue,
> + const size_t dimension,
> + const bool transpose = true)
> + {
> + // find mapped value inside current mapper
> + auto mappedValue = mapper.UnmapValue(targetValue, dimension);
> +
> + if(transpose)
> + {
> + for (size_t i = 0; i < input.n_rows; ++i)
</pre>
<p>OpenMP may help us get better performance if the size of the input is big enough</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/5a517c25ef55de1f4814dc3605190d17f868ff82#r66940588">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFMFTbn7jFX3k2Cdi8fa0q3V1Yn5Rks5qLnnHgaJpZM4I07W-">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFJI_CXfff8cRHOGLHk16fn-SAFbjks5qLnnHgaJpZM4I07W-.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/5a517c25ef55de1f4814dc3605190d17f868ff82#r66940588"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>