Derivation of the sigmoid function: σ′(y) = σ(y)(1 − σ(y))