[mlpack-git] master: fix bug--sign error (7615ed3)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Mon Nov 30 10:40:22 EST 2015


Repository : https://github.com/mlpack/mlpack

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/5aaf0e441dd64a5de9a0210aa7a837eecf162d12...e4519fc42a2a340cf0387ab082bf49b9715c871b

>---------------------------------------------------------------

commit 7615ed348cb506ea467ffda199d42a36b71a1808
Author: stereomatchingkiss <stereomatchingkiss at gmail.com>
Date:   Fri Nov 6 12:03:46 2015 +0800

    fix bug--sign error


>---------------------------------------------------------------

7615ed348cb506ea467ffda199d42a36b71a1808
 src/mlpack/methods/sparse_autoencoder/maximal_inputs.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mlpack/methods/sparse_autoencoder/maximal_inputs.cpp b/src/mlpack/methods/sparse_autoencoder/maximal_inputs.cpp
index 661c6c5..624d834 100644
--- a/src/mlpack/methods/sparse_autoencoder/maximal_inputs.cpp
+++ b/src/mlpack/methods/sparse_autoencoder/maximal_inputs.cpp
@@ -80,6 +80,7 @@ void ColumnsToBlocks(const arma::mat &maximalInputs,
   arma::uword const offset = squareRows+buf;
   outputs.ones(buf+rows*(offset),
                buf+cols*(offset));
+  outputs *= -1;
 
   arma::uword k = 0;
   for(arma::uword i = 0; i != rows; ++i) {



More information about the mlpack-git mailing list