def inplace_logistic_derivative(Z, delta):
 delta *= Z
 delta *= (1 - Z)

def inplace_logistic_derivative ( Z , delta ) : delta *= Z delta *= ( 1 - Z )
apply the derivative of the logistic sigmoid function .