aboutsummaryrefslogtreecommitdiff
path: root/layer/sigmoid.lua
diff options
context:
space:
mode:
Diffstat (limited to 'layer/sigmoid.lua')
-rw-r--r--layer/sigmoid.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/layer/sigmoid.lua b/layer/sigmoid.lua
index d69e9e3..d0a87c0 100644
--- a/layer/sigmoid.lua
+++ b/layer/sigmoid.lua
@@ -5,10 +5,14 @@ function SigmoidLayer:__init(id, global_conf)
self.gconf = global_conf
end
+function SigmoidLayer:update(bp_err, input, output)
+ -- no params, therefore do nothing
+end
+
function SigmoidLayer:propagate(input, output)
output:sigmoid(input)
end
function SigmoidLayer:back_propagate(next_bp_err, bp_err, input, output)
- next_bp_err:sigmoid(bp_err, output)
+ next_bp_err:sigmoid_grad(bp_err, output)
end