[mlpack-git] [mlpack/mlpack] DatasetMapper & Imputer (#694)
Keon Kim
notifications at github.com
Sun Jul 10 23:12:34 EDT 2016
> +template <typename T>
> +class MedianImputation
> +{
> + public:
> + void Impute(const arma::Mat<T>& input,
> + arma::Mat<T>& output,
> + const T& mappedValue,
> + const size_t dimension,
> + const bool transpose = true)
> + {
> + //initiate output
> + output = input;
> +
> + if (transpose)
> + {
> + arma::Mat<T> medianMat = arma::median(input, 1);
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/a8818316a04506530e2269a2e0a32ba2f6a1c83b#r70197459
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160710/78abcecb/attachment.html>
More information about the mlpack-git
mailing list