Tensorflow :: ops :: ResourceApplyProximalGradientDescent
#include <training_ops.h>
Aktualisieren Sie '* var' als FOBOS-Algorithmus mit fester Lernrate.
Zusammenfassung
prox_v = var - Alpha * Delta var = Vorzeichen (prox_v) / (1 + Alpha * 12) * max {| prox_v | -alpha * l1,0}
Argumente:
- scope: Ein Scope- Objekt
- var: Sollte von einer Variablen stammen ().
- Alpha: Skalierungsfaktor. Muss ein Skalar sein.
- l1: L1-Regularisierung. Muss ein Skalar sein.
- l2: L2-Regularisierung. Muss ein Skalar sein.
- Delta: Die Änderung.
Optionale Attribute (siehe Attrs
):
- use_locking: Wenn True, wird die Subtraktion durch eine Sperre geschützt. Andernfalls ist das Verhalten undefiniert, weist jedoch möglicherweise weniger Konflikte auf.
Kehrt zurück:
- die erstellte
Operation
Konstruktoren und Destruktoren | |
---|---|
ResourceApplyProximalGradientDescent (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input alpha, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input delta) | |
ResourceApplyProximalGradientDescent (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input alpha, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input delta, const ResourceApplyProximalGradientDescent::Attrs & attrs) |
Öffentliche Attribute | |
---|---|
operation |
Öffentliche Funktionen | |
---|---|
operator::tensorflow::Operation () const |
Öffentliche statische Funktionen | |
---|---|
UseLocking (bool x) |
Strukturen | |
---|---|
tensorflow :: ops :: ResourceApplyProximalGradientDescent :: Attrs | Optionale Attributsetzer für ResourceApplyProximalGradientDescent . |
Öffentliche Attribute
Operation
Operation operation
Öffentliche Funktionen
ResourceApplyProximalGradientDescent
ResourceApplyProximalGradientDescent( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input alpha, ::tensorflow::Input l1, ::tensorflow::Input l2, ::tensorflow::Input delta )
ResourceApplyProximalGradientDescent
ResourceApplyProximalGradientDescent( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input alpha, ::tensorflow::Input l1, ::tensorflow::Input l2, ::tensorflow::Input delta, const ResourceApplyProximalGradientDescent::Attrs & attrs )
operator :: tensorflow :: Operation
operator::tensorflow::Operation() const
Öffentliche statische Funktionen
UseLocking
Attrs UseLocking( bool x )