sigmoid#

scikitplot.utils.helpers.sigmoid(x)#

Compute the sigmoid function for the input array x.

The sigmoid function is defined as:

sigmoid(x) = 1 / (1 + exp(-x))

Parameters:

x (array-like) – Input array for which to compute the sigmoid.

Returns:

The sigmoid of each element in x, with the same shape as x.

Return type:

array-like