[mlpack-git] [mlpack/mlpack] Binarize Function + Test (#666)

Marcus Edel notifications at github.com
Thu Jun 9 05:13:49 EDT 2016


Why not just use:

``
output = output > threshold;
``

@stereomatchingkiss this only works if we initialize the output first? If that's the case, maybe the armadillo transform is even simpler:

``
output.transform( [](double val) { return ( val > threshold); } );
``

---
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#issuecomment-224841375
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160609/68ad70ec/attachment-0001.html>


More information about the mlpack-git mailing list