<p>In <a href="https://github.com/mlpack/mlpack/pull/694#discussion_r68868564">src/mlpack/core/data/dataset_info.hpp</a>:</p>
<pre style='color:#555'>&gt;     */
&gt; -  DatasetInfo(const size_t dimensionality = 0);
&gt; +  DatasetMapper(const size_t dimensionality = 0);
</pre>
<p>Let the constructor store MapPolicy, so we could save some state and allow us to tell the DatasetMapper we do not want to map non target string(ex : NaN, empty string and so on) to categorical.</p>

<pre><code>DatasetMapper(const size_t dimensionality = 0, MapPolicy mapPolicy) : 
  dimensionality(dimensionality),
   mapPolicy(std::move(mapPolicy))
{}
</code></pre>

<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/e09d9bc713ebc66a95a2ed824f60ed3f1b09ceff#r68868564">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFHxSKil76ThMAQp1YIrzC7qJbzISks5qQb5YgaJpZM4I07W-">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFKcW9J9D2JHH2Onp_FmwKYxs3wyJks5qQb5YgaJpZM4I07W-.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/e09d9bc713ebc66a95a2ed824f60ed3f1b09ceff#r68868564"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>