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

Tham notifications at github.com
Thu Jul 7 10:35:50 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.

MissingPolicy only map desired value/string to nan.

Example : 
MissingPolicy miss({"a"});
0 a 2 3 4 map to 0 nan 2 3 4

IncrementPocliy inc;
0 a 2 3 4 map to 0 1 2 3 4


The role of missingSet and maps are different. 

---
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#r69918063
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160707/ce5e1f6f/attachment.html>


More information about the mlpack-git mailing list