[mlpack-git] [mlpack/mlpack] Added the discretize function. Design changes as discussed. (#703)

Marcus Edel notifications at github.com
Sun Aug 14 12:03:27 EDT 2016


> +   * find nC2 differences, for locations in the grid_pos.
> +   * @param features n-dimensional points
> +   * @param grid_pos locations
> +   * @param Output stores differences between features at grid_pos locations
> +   */
> +  void PDist(const CubeType& features, const arma::uvec& grid_pos,
> +             CubeType& Output);
> +
> +  /**
> +   * Find the index of minimum element in a vector
> +   * @param k Vector in which we want to find element
> +   * return value index of minimum element
> +   */
> +  size_t IndexMin(arma::vec& k);
> +
> +  size_t Discretize(const MatType& labels, const size_t nClass,

Can you add a comment that describes what this function does.

-- 
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/703/files/72eb1ef22c7db1ea33af3de1cd043cdb277ec562#r74704345
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160814/cd1607f1/attachment.html>


More information about the mlpack-git mailing list