<p>In <a href="https://github.com/mlpack/mlpack/pull/694#discussion_r70025002">src/mlpack/core/data/map_policies/missing_policy.hpp</a>:</p>
<pre style='color:#555'>> + if (missingSet.count(string) != 0 &&
> + (maps.count(dimension) == 0 ||
> + maps[dimension].first.left.count(string) == 0))
> + {
> + // This string does not exist yet.
> + size_t& numMappings = maps[dimension].second;
> +
> + typedef boost::bimap<std::string, mapped_type>::value_type PairType;
> + maps[dimension].first.insert(PairType(string, NaN));
> +
> + ++numMappings;
> + return NaN;
> + }
> + else
> + {
> + // This string already exists in the mapping or .
</pre>
<p>Updated</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#r70025002">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFCaBzjRKaXpP4oClN_9qrruaWN4yks5qTdcZgaJpZM4I07W-">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFPGex8vhHv50wM6iLZr7d0NsenqGks5qTdcZgaJpZM4I07W-.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#r70025002"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>