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

Keon Kim notifications at github.com
Fri Jul 8 00:57:01 EDT 2016


> +              const std::string& missingValue,
> +              const size_t dimension)
> +  {
> +    T mappedValue = static_cast<T>(mapper.UnmapValue(missingValue, dimension));
> +    strategy.Impute(input, output, mappedValue, dimension, transpose);
> +  }
> +
> +  /**
> +  * This overload of Impute() lets users to define custom value that can be
> +  * replaced with the target value.
> +  */
> +  void Impute(const arma::Mat<T>& input,
> +              arma::Mat<T>& output,
> +              const std::string& missingValue,
> +              const T& customValue,
> +              const size_t dimension)

I think this is a good idea. I'll update 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/a8818316a04506530e2269a2e0a32ba2f6a1c83b#r70025321
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160707/f6b7b9de/attachment-0001.html>


More information about the mlpack-git mailing list