SciPy

scipy.special.expit

scipy.special.expit(x[, out]) = <ufunc 'expit'>

Expit ufunc for ndarrays.

The expit function is defined as expit(x) = 1/(1+exp(-x)). Note that expit is the inverse logit function.

Parameters :

x : ndarray

The ndarray to apply expit to element-wise.

Returns :

out : ndarray

An ndarray of the same shape as x. Its entries are expit of the corresponding entry of x.

Notes

As a ufunc logit takes a number of optional keywork arguments. For more information see ufuncs

Previous topic

scipy.special.logit

Next topic

scipy.special.gamma