[mlpack-git] [mlpack/mlpack] DatasetMapper & Imputer (#694)
stereomatchingkiss
notifications at github.com
Tue Jun 14 05:52:07 EDT 2016
> + */
> + template <typename T>
> + void Impute(const arma::Mat<T> &input,
> + arma::Mat<T> &output,
> + Mapper &mapper,
> + const std::string &targetValue,
> + const T &customValue,
> + const size_t dimension,
> + const bool transpose = true)
> + {
> + // find mapped value inside current mapper
> + auto mappedValue = mapper.UnmapValue(targetValue, dimension);
> +
> + if(transpose)
> + {
> + for (size_t i = 0; i < input.n_rows; ++i)
OpenMP may help us get better performance if the size of the input is big enough
---
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#r66940588
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160614/6dc64fe2/attachment.html>
More information about the mlpack-git
mailing list