[mlpack-git] master: Use the correct input to accumulate the elements. Thanks to Shangtong for pointing this out. (c321d54)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 22:14:55 EST 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40
>---------------------------------------------------------------
commit c321d54b86de33927c338ae57c9ab9eeb803b290
Author: Marcus Edel <marcus.edel at fu-berlin.de>
Date: Fri Jan 30 11:48:41 2015 +0100
Use the correct input to accumulate the elements. Thanks to Shangtong for pointing this out.
>---------------------------------------------------------------
c321d54b86de33927c338ae57c9ab9eeb803b290
src/mlpack/methods/ann/layer/softmax_layer.hpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mlpack/methods/ann/layer/softmax_layer.hpp b/src/mlpack/methods/ann/layer/softmax_layer.hpp
index 63af854..1583035 100644
--- a/src/mlpack/methods/ann/layer/softmax_layer.hpp
+++ b/src/mlpack/methods/ann/layer/softmax_layer.hpp
@@ -48,7 +48,7 @@ class SoftmaxLayer
void FeedForward(const VecType& inputActivation, VecType& outputActivation)
{
outputActivation = arma::trunc_exp(inputActivation);
- outputActivation /= arma::accu(inputActivation);
+ outputActivation /= arma::accu(outputActivation);
}
/**
More information about the mlpack-git
mailing list