sigmoid# ray.rllib.utils.numpy.sigmoid(x: ndarray, derivative: bool = False) → ndarray[source]# Returns the sigmoid function applied to x. Alternatively, can return the derivative or the sigmoid function. Parameters: x (ndarray) – The input to the sigmoid function. derivative (bool) – Whether to return the derivative or not. Default: False. Returns: The sigmoid function (or its derivative) applied to x. Return type: ndarray