From aa438bfac7250d49257f71f5a1b33819364dbb72 Mon Sep 17 00:00:00 2001 From: CHatingPython Date: Sun, 25 Oct 2026 15:40:58 +0100 Subject: [PATCH] fix: remove sigmoid derivative from backprop --- include/cenet/network.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cenet/network.hpp b/include/cenet/network.hpp index ce1db15..f89ef90 100644 --- a/include/cenet/network.hpp +++ b/include/cenet/network.hpp @@ -108,7 +108,7 @@ public: public: void backprop(const input_type& input, const output_type& expected, learning_state& state) { feed(input); - auto outputErr = (get_output().get() - expected).hadamard(get_output()).hadamard(1.0 - get_output().get()); + auto outputErr = get_output().get() - expected; get_layer<0>().backward(input, std::get<0>(state.m_layers), backprop_chain(state, outputErr));