[mlpack-git] master: fix binarize copy problem (d797162)
gitdub at mlpack.org
gitdub at mlpack.org
Mon Jun 6 15:13:10 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/a0b31abe5ff69117645c664dbeac1476dd5e48f7...2da9c5bac14a00145c757b8139c245913b86e034
>---------------------------------------------------------------
commit d797162a837f4051ecff549344dac09ecb515cae
Author: Keon Kim <kwk236 at gmail.com>
Date: Tue Jun 7 04:13:10 2016 +0900
fix binarize copy problem
>---------------------------------------------------------------
d797162a837f4051ecff549344dac09ecb515cae
src/mlpack/core/data/binarize.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mlpack/core/data/binarize.hpp b/src/mlpack/core/data/binarize.hpp
index ae7551d..13c0d19 100644
--- a/src/mlpack/core/data/binarize.hpp
+++ b/src/mlpack/core/data/binarize.hpp
@@ -144,7 +144,7 @@ void Binarize(const arma::Mat<T>& input,
const double threshold,
const size_t dimension)
{
- output.copy_size(input);
+ output(input);
for (size_t i = 0; i < input.n_cols; ++i)
{
More information about the mlpack-git
mailing list