[mlpack-git] [mlpack/mlpack] DatasetMapper & Imputer (#694)
Marcus Edel
notifications at github.com
Thu Jul 21 19:36:59 EDT 2016
> + //! Modify (Replace) the policy of the mapper with a new policy
> + void Policy(PolicyType&& policy);
> +
> + private:
> + //! Types of each dimension.
> + std::vector<Datatype> types;
> +
> + // BiMapType definition
> + using BiMapType = boost::bimap<std::string, typename PolicyType::MappedType>;
> +
> + // Mappings from strings to integers.
> + // Map entries will only exist for dimensions that are categorical.
> + // MapType = map<dimension, pair<bimap<string, MappedType>, numMappings>>
> + using MapType = std::unordered_map<size_t, std::pair<BiMapType, size_t>>;
> +
> + MapType maps;
Can you comment the `maps` and `policy` parameter?
---
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/028c217057410e2e75691c32bf062202ce5dca3f#r71806590
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160721/d0dec9ec/attachment.html>
More information about the mlpack-git
mailing list