mirror of
https://github.com/Relintai/pmlpp.git
synced 2025-01-18 15:07:16 +01:00
Fixed the order of the size parameters in MLPPActivation::sigmoid_normm().
This commit is contained in:
parent
7229bc7242
commit
726d51ec58
@ -858,7 +858,7 @@ Ref<MLPPVector> MLPPActivation::sigmoid_normv(const Ref<MLPPVector> &z) {
|
|||||||
}
|
}
|
||||||
Ref<MLPPMatrix> MLPPActivation::sigmoid_normm(const Ref<MLPPMatrix> &z) {
|
Ref<MLPPMatrix> MLPPActivation::sigmoid_normm(const Ref<MLPPMatrix> &z) {
|
||||||
MLPPLinAlg alg;
|
MLPPLinAlg alg;
|
||||||
return alg.division_element_wisenvnm(alg.onematnm(z->size().x, z->size().y), alg.additionnm(alg.onematnm(z->size().x, z->size().y), alg.expnm(alg.scalar_multiplynm(-1, z))));
|
return alg.division_element_wisenvnm(alg.onematnm(z->size().y, z->size().x), alg.additionnm(alg.onematnm(z->size().y, z->size().x), alg.expnm(alg.scalar_multiplynm(-1, z))));
|
||||||
}
|
}
|
||||||
|
|
||||||
real_t MLPPActivation::sigmoid_derivr(real_t z) {
|
real_t MLPPActivation::sigmoid_derivr(real_t z) {
|
||||||
|
Loading…
Reference in New Issue
Block a user