Learn R Programming

cgraph (version 3.0.1)

sigmoid_grad: Sigmoid Gradient

Description

Calculate the gradient of 1 / (1 + exp(-x)) with respect to x.

Arguments

y

numeric vector or array, value of 1 / (1 + exp(-x)).

grad

numeric vector or array, gradient of x.

Value

numeric vector or array, gradient of the operation.