[mlpack-git] [mlpack/mlpack] DatasetMapper & Imputer (#694)

Ryan Curtin notifications at github.com
Thu Jul 7 09:50:47 EDT 2016


> +#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.

Could you detail what the class does a little more?  I think that, based on reading it, `MissingPolicy` takes a set of tokens and maps those tokens to `NaN`---but it also maps any other tokens that can't be converted to numbers to `NaN`.  Is that correct?  If so, we should document it better, I think.

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/694/files/a8818316a04506530e2269a2e0a32ba2f6a1c83b#r69909352
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160707/939956cc/attachment.html>


More information about the mlpack-git mailing list