cupyx.scipy.special.log_expit#

cupyx.scipy.special.log_expit()#

Logarithm of the logistic sigmoid function.

Parameters:

x (cupy.ndarray) – input data (must be real)

Returns:

values of log(expit(x))

Return type:

cupy.ndarray

Note

The function is mathematically equivalent to log(expit(x)), but is formulated to avoid loss of precision for inputs with large (positive or negative) magnitude.