<p>In <a href="https://github.com/mlpack/mlpack/pull/694#discussion_r69918063">src/mlpack/core/data/map_policies/missing_policy.hpp</a>:</p>
<pre style='color:#555'>> +#define MLPACK_CORE_DATA_MAP_POLICIES_MISSING_POLICY_HPP
> +
> +#include <mlpack/core.hpp>
> +#include <unordered_map>
> +#include <boost/bimap.hpp>
> +#include <mlpack/core/data/map_policies/datatype.hpp>
> +#include <limits>
> +
> +
> +using namespace std;
> +
> +namespace mlpack {
> +namespace data {
> +
> +/**
> + * Same as increment map policy, but does not change type of features.
</pre>
<p>MissingPolicy only map desired value/string to nan.</p>
<p>Example : <br>
MissingPolicy miss({"a"});<br>
0 a 2 3 4 map to 0 nan 2 3 4</p>
<p>IncrementPocliy inc;<br>
0 a 2 3 4 map to 0 1 2 3 4</p>
<p>The role of missingSet and maps are different. </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/a8818316a04506530e2269a2e0a32ba2f6a1c83b#r69918063">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFCQ09QNP2Pw1EosIqtdx4grk8GBEks5qTQ7GgaJpZM4I07W-">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFBn9kfKpxdOhRnwRtAu2o0Qu1y-Cks5qTQ7GgaJpZM4I07W-.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#r69918063"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>