<p>In <a href="https://github.com/mlpack/mlpack/pull/694#discussion_r69920655">src/mlpack/core/data/imputer.hpp</a>:</p>
<pre style='color:#555'>&gt; +
&gt; +  //! Get the mapper
&gt; +  const MapperType&amp; Mapper() const { return mapper; }
&gt; +
&gt; +  //! Modify the given mapper (be careful!)
&gt; +  MapperType&amp; Mapper() { return mapper; }
&gt; +
&gt; + private:
&gt; +  // StrategyType
&gt; +  StrategyType strategy;
&gt; +
&gt; +  // DatasetMapperType&lt;MapPolicy&gt;
&gt; +  MapperType mapper;
&gt; +
&gt; +  // save transpose as a member variable since it is rarely changed.
&gt; +  bool transpose;
</pre>
<p>It used like this</p>

<p>"3.0 0.0 2.0 0.0;"<br>
"5.0 6.0 0.0 6.0;"<br>
"9.0 8.0 4.0 8.0;"</p>

<pre><code>imputer.Impute(input, outputT, 0/*mappedValue*/, 
99/*customValue*/, 0/*dimension*/, true);
</code></pre>

<p>"3.0 99  2.0 99;"<br>
"5.0 6.0 0.0 6.0;"<br>
"9.0 8.0 4.0 8.0;"</p>

<pre><code>imputer.Impute(input, outputT, 0/*mappedValue*/, 
99/*customValue*/, 1/*dimension*/, false);
</code></pre>

<p>"3.0 99  2.0 0.0;"<br>
"5.0 6.0 0.0 6.0;"<br>
"9.0 8.0 4.0 8.0;"</p>

<p>I guess the problem is the name , I should suggest keon name it as "rowOrColBase", or design an enum class for it.My fault</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/a8818316a04506530e2269a2e0a32ba2f6a1c83b#r69920655">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFJRiwOknuVeHHF8PNzp8273Rcwxxks5qTRH5gaJpZM4I07W-">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFH3lUPgXn_VLfeNO6EyqVDqcm732ks5qTRH5gaJpZM4I07W-.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/a8818316a04506530e2269a2e0a32ba2f6a1c83b#r69920655"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>