tensorflow :: opérations :: AppliquerProximalGradientDescente
#include <training_ops.h>
Mettez à jour '* var' en tant qu'algorithme FOBOS avec un taux d'apprentissage fixe.
Résumé
prox_v = var - alpha * delta var = signe (prox_v) / (1 + alpha * l2) * max {| prox_v | -alpha * l1,0}
Arguments:
- scope: un objet Scope
- var: Doit provenir d'une variable ().
- alpha: facteur d'échelle. Doit être un scalaire.
- l1: régularisation L1. Doit être un scalaire.
- l2: régularisation L2. Doit être un scalaire.
- delta: Le changement.
Attributs facultatifs (voir Attrs
):
- use_locking: Si True, la soustraction sera protégée par un verrou; sinon, le comportement n'est pas défini, mais peut présenter moins de conflits.
Retour:
-
Output
: identique à "var".
Constructeurs et destructeurs | |
---|---|
ApplyProximalGradientDescent (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input alpha, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input delta) | |
ApplyProximalGradientDescent (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input alpha, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input delta, const ApplyProximalGradientDescent::Attrs & attrs) |
Attributs publics | |
---|---|
operation | |
out |
Fonctions publiques | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Fonctions statiques publiques | |
---|---|
UseLocking (bool x) |
Structs | |
---|---|
tensorflow :: ops :: ApplyProximalGradientDescent :: Attrs | Définisseurs d' attributs facultatifs pour ApplyProximalGradientDescent . |
Attributs publics
opération
Operation operation
en dehors
::tensorflow::Output out
Fonctions publiques
AppliquerProximalGradientDescente
ApplyProximalGradientDescent( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input alpha, ::tensorflow::Input l1, ::tensorflow::Input l2, ::tensorflow::Input delta )
AppliquerProximalGradientDescente
ApplyProximalGradientDescent( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input alpha, ::tensorflow::Input l1, ::tensorflow::Input l2, ::tensorflow::Input delta, const ApplyProximalGradientDescent::Attrs & attrs )
nœud
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const
Fonctions statiques publiques
Utiliser le verrouillage
Attrs UseLocking( bool x )