tensorflow:: ops:: ResourceApplyProximalGradientDescent
#include <training_ops.h>Zaktualizuj '*var' jako algorytm FOBOS ze stałą szybkością uczenia się.
Streszczenie
prox_v = var - alfa * delta var = sign(prox_v)/(1+alpha*l2) * max{|prox_v|-alpha*l1,0}
Argumenty:
- zakres: obiekt zakresu
- var: Powinien pochodzić ze zmiennej Variable().
- alfa: 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 wartość True, odejmowanie będzie chronione blokadą; w przeciwnym wypadku zachowanie jest niezdefiniowane, ale może wykazywać mniej konfliktów.
Zwroty:
- utworzona
Operation
Konstruktory i destruktory | |
|---|---|
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 settery atrybutów dla ResourceApplyProximalGradientDescent . |
Atrybuty publiczne
działanie
Operation operation
Funkcje publiczne
Zastosuj zasóbProximalGradientDescent
ResourceApplyProximalGradientDescent( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input alpha, ::tensorflow::Input l1, ::tensorflow::Input l2, ::tensorflow::Input delta )
Zastosuj zasóbProximalGradientDescent
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
Użyj blokady
Attrs UseLocking( bool x )