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

Ryan Curtin notifications at github.com
Wed Jul 13 10:33:44 EDT 2016


> +  }
> +
> +  /**
> +   * Impute function searches through the input looking for mappedValue and
> +   * replaces it with the median of the given dimension. The result is
> +   * overwritten to the input matrix.
> +   *
> +   * @param input Matrix that contains mappedValue.
> +   * @param mappedValue Value that the user wants to get rid of.
> +   * @param dimension Index of the dimension of the mappedValue.
> +   * @param columnMajor State of whether the input matrix is columnMajor or not.
> +   */
> +  void Impute(arma::Mat<T>& input,
> +              const T& mappedValue,
> +              const size_t dimension,
> +              const bool columnMajor = true)

When I was looking over this, I thought, maybe this method could be `static`?  This probably applies to some other imputation strategies too.

---
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/e5d591e511ae449eae1523a80346357b93b968d1#r70636674
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160713/98ac1b0b/attachment.html>


More information about the mlpack-git mailing list