<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'>&gt; +  */
&gt; +  template &lt;typename T&gt;
&gt; +  void Impute(const arma::Mat&lt;T&gt; &amp;input,
&gt; +              arma::Mat&lt;T&gt; &amp;output,
&gt; +              Mapper &amp;mapper,
&gt; +              const std::string &amp;targetValue,
&gt; +              const T &amp;customValue,
&gt; +              const size_t dimension,
&gt; +              const bool transpose = true)
&gt; +  {
&gt; +    // find mapped value inside current mapper
&gt; +    auto mappedValue = mapper.UnmapValue(targetValue, dimension);
&gt; +
&gt; +    if(transpose)
&gt; +    {
&gt; +      for (size_t i = 0; i &lt; 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;">&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/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>