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

Tham notifications at github.com
Tue Jun 28 20:37:44 EDT 2016


>     */
> -  DatasetInfo(const size_t dimensionality = 0);
> +  DatasetMapper(const size_t dimensionality = 0);

Let the constructor store MapPolicy, so we could save some state and allow us to tell the DatasetMapper we do not want to map non target string(ex : NaN, empty string and so on) to categorical.

```
DatasetMapper(const size_t dimensionality = 0, MapPolicy mapPolicy) : 
  dimensionality(dimensionality),
   mapPolicy(std::move(mapPolicy))
{}
```

---
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/e09d9bc713ebc66a95a2ed824f60ed3f1b09ceff#r68868564
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160628/fb4955b3/attachment-0001.html>


More information about the mlpack-git mailing list