[mlpack-git] [mlpack/mlpack] Binarize Function + Test (#666)
Keon Kim
notifications at github.com
Thu Jun 2 13:06:19 EDT 2016
This is a simple implementation of binarize function which transforms values in matrix to 0 or 1 according to the threshold.
Yes, you can use `umat A = (B > C)` but this function has a overload that applies binarize to only one dimension.
You can view, comment on, or merge this pull request online at:
https://github.com/mlpack/mlpack/pull/666
-- Commit Summary --
* add Binarize + test
* Merge pull request #2 from mlpack/master
* Merge branch 'master' of github.com:keonkim/mlpack into binarize
-- File Changes --
M src/mlpack/core/data/CMakeLists.txt (1)
A src/mlpack/core/data/binarize.hpp (76)
M src/mlpack/tests/CMakeLists.txt (1)
A src/mlpack/tests/binarize_test.cpp (78)
-- Patch Links --
https://github.com/mlpack/mlpack/pull/666.patch
https://github.com/mlpack/mlpack/pull/666.diff
---
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/666
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160602/613e4039/attachment.html>
More information about the mlpack-git
mailing list