fix: remove sigmoid derivative from backprop

This commit is contained in:
2026-10-25 15:40:58 +01:00
parent 41cd7dbc2f
commit aa438bfac7
+1 -1
View File
@@ -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<sizeof...(Layers) - 1>(state, outputErr));