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

Keon Kim notifications at github.com
Tue Jun 14 07:45:47 EDT 2016


> +   * @param dimension
> +   * @param index
> +   * @param transpose
> +   */
> +  template <typename MatType>
> +  void Impute(const MatType &input,
> +              MatType &output,
> +              const size_t dimension,
> +              const size_t index,
> +              const bool transpose = true)
> +  {
> +    if (transpose)
> +    {
> +      // TODO: The mean must be calculated
> +      // without NaN or target missing variable.
> +      MatType meanMat = arma::mean(input, 1);

@stereomatchingkiss
Thanks for the comment! 
oh, you're right. I was thinking we can iterate through the dimension here.
What do you mean by store mapper to help us filter out the NaN or target missing variable?
could you clarify this?

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


More information about the mlpack-git mailing list