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

Keon Kim notifications at github.com
Fri Jul 22 08:34:47 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;

updated!

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


More information about the mlpack-git mailing list