tensorflow :: ops :: ResourceApplyProximalGradientDescent
#include <training_ops.h>
Zaktualizuj „* var” jako algorytm FOBOS ze stałym współczynnikiem uczenia się.
streszczenie
prox_v = var - alpha * delta var = sign (prox_v) / (1 + alpha * l2) * max {| prox_v | -alpha * l1,0}
Argumenty:
- zakres: obiekt Scope
- zmienna: powinna pochodzić ze zmiennej ().
- alpha: współczynnik skalowania. Musi być skalarem.
- l1: regularyzacja L1. Musi być skalarem.
- l2: regularyzacja L2. Musi być skalarem.
- delta: zmiana.
Atrybuty opcjonalne (patrz Attrs
):
- use_locking: Jeśli True, odejmowanie będzie chronione blokadą; w przeciwnym razie zachowanie jest niezdefiniowane, ale może wykazywać mniej rywalizacji.
Zwroty:
- utworzonej
Operation
Konstruktorzy i niszczyciele | |
---|---|
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) |
Atrybuty publiczne | |
---|---|
operation |
Funkcje publiczne | |
---|---|
operator::tensorflow::Operation () const |
Publiczne funkcje statyczne | |
---|---|
UseLocking (bool x) |
Struktury | |
---|---|
tensorflow :: ops :: ResourceApplyProximalGradientDescent :: Attrs | Opcjonalne metody ustawiające atrybuty dla ResourceApplyProximalGradientDescent . |
Atrybuty publiczne
operacja
Operation operation
Funkcje publiczne
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
Publiczne funkcje statyczne
UseLocking
Attrs UseLocking( bool x )