[mlpack-git] [mlpack/mlpack] add overload that imputes every dimensions (#740)

Keon Kim notifications at github.com
Tue Jul 26 17:24:37 EDT 2016


> +              const std::string& missingValue)
> +  {
> +    if (columnMajor)
> +    {
> +      for (size_t i = 0; i < input.n_rows; ++i)
> +      {
> +        if (mapper.NumMappings(i) > 0)
> +        {
> +          T mappedValue = static_cast<T>(mapper.UnmapValue(missingValue, i));
> +          strategy.Impute(input, mappedValue, i, columnMajor);
> +        }
> +      }
> +    }
> +    else
> +    {
> +      for (size_t i = 0; i < input.n_rows; ++i)

I fixed it.
I got a little creative and added a user friendly output messages in the commit.

---
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/740/files/645c58d4f0d413b2fe0c97766b1aa4bc486e21bb#r72339180
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160726/e4cfb691/attachment.html>


More information about the mlpack-git mailing list