Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Deep Learning avec Python
et Keras et Tensorflow
Voir le programme détaillé
Module « scipy.special »

Fonction softplus - module scipy.special

Signature de la fonction softplus

def softplus(x, **kwargs) 

Description

help(scipy.special.softplus)

Compute the softplus function element-wise.

The softplus function is defined as: ``softplus(x) = log(1 + exp(x))``.
It is a smooth approximation of the rectifier function (ReLU).

Parameters
----------
x : array_like
    Input value.
**kwargs
    For other keyword-only arguments, see the
    `ufunc docs <https://numpy.org/doc/stable/reference/ufuncs.html>`_.

Returns
-------
softplus : ndarray
    Logarithm of ``exp(0) + exp(x)``.

Examples
--------
>>> from scipy import special

>>> special.softplus(0)
0.6931471805599453

>>> special.softplus([-1, 0, 1])
array([0.31326169, 0.69314718, 1.31326169])


Vous êtes un professionnel et vous avez besoin d'une formation ? Machine Learning
avec Scikit-Learn
Voir le programme détaillé