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

stereomatchingkiss notifications at github.com
Tue Jun 14 05:31:56 EDT 2016


> +
> +/**
> + * This class implements a way to replace target values. It is dependent on the
> + * user defined Strategy and Mapper used to hold dataset's information.
> + *
> + * @tparam Option of imputation strategy.
> + * @tparam Mapper that is used to hold dataset information.
> + * @tparam primitive type of input and output's armadillo matrix.
> + */
> +template<typename MatType, typename Mapper, typename Strategy>
> +class Imputer
> +{
> + private:
> +  Strategy strat;
> + public:
> +  Imputer()

Maybe we could store the Mapper, Strategy and transpose information in the class, ask the users to pass them into the constructor.This way the Strategy could save some "states", which should help us to reduce some computation(like MeanStrategy)

---
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/5a517c25ef55de1f4814dc3605190d17f868ff82#r66937742
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160614/b615753e/attachment.html>


More information about the mlpack-git mailing list