<p>In <a href="https://github.com/mlpack/mlpack/pull/694#discussion_r69866700">src/mlpack/core/data/map_policies/missing_policy.hpp</a>:</p>
<pre style='color:#555'>&gt; +#include &lt;limits&gt;
&gt; +
&gt; +
&gt; +using namespace std;
&gt; +
&gt; +namespace mlpack {
&gt; +namespace data {
&gt; +
&gt; +/**
&gt; + * Same as increment map policy, but does not change type of features.
&gt; + */
&gt; +class MissingPolicy
&gt; +{
&gt; + public:
&gt; +  // typedef of mapped_type
&gt; +  using mapped_type = double;
</pre>
<p><a href="https://github.com/zoq" class="user-mention">@zoq</a> it is because mappings can be any type of pairs. DatasetMapper takes care of mapping string values to any type of numeric values. <br>
For example, IncrementPolicy defines mapped_type as size_t. Therefore the DatasetMapper knows how to map and <a href="https://github.com/mlpack/mlpack/pull/694/files#diff-4654fc03017f8f55e68d7e012a8c74f9R78">return</a> the data. (string to size_t mapping)<br>
However, MissingPolicy uses NaN so the mapped_type is defined as double.  </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#r69866700">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFExn8C61drMewMerZG_7eY94WNdKks5qTLTggaJpZM4I07W-">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFCWfM3veJkhHGWwdMGa_IvQwNzL8ks5qTLTggaJpZM4I07W-.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#r69866700"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>