tensorflow:: ops:: ResourceSparseApplyProximalGradientDescent
#include <training_ops.h>Rzadka aktualizacja '*var' jako algorytm FOBOS ze stałą szybkością uczenia się.
Streszczenie
W przypadku wierszy, dla których mamy grad, aktualizujemy var w następujący sposób: prox_v = var - alpha * grad 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.
- grad: Gradient.
- indeksy: Wektor indeksów do pierwszego wymiaru var i accum.
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 | |
|---|---|
ResourceSparseApplyProximalGradientDescent (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input alpha, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input grad, :: tensorflow::Input indices) | |
ResourceSparseApplyProximalGradientDescent (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input alpha, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input grad, :: tensorflow::Input indices, const ResourceSparseApplyProximalGradientDescent::Attrs & attrs) |
Atrybuty publiczne | |
|---|---|
operation | |
Funkcje publiczne | |
|---|---|
operator::tensorflow::Operation () const | |
Publiczne funkcje statyczne | |
|---|---|
UseLocking (bool x) | |
Struktury | |
|---|---|
| tensorflow:: ops:: ResourceSparseApplyProximalGradientDescent:: Attrs | Opcjonalne settery atrybutów dla ResourceSparseApplyProximalGradientDescent . |
Atrybuty publiczne
działanie
Operation operation
Funkcje publiczne
ZasóbRzadkiZastosujProksymalnyGradientDescent
ResourceSparseApplyProximalGradientDescent( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input alpha, ::tensorflow::Input l1, ::tensorflow::Input l2, ::tensorflow::Input grad, ::tensorflow::Input indices )
ZasóbRzadkiZastosujProksymalnyGradientDescent
ResourceSparseApplyProximalGradientDescent( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input alpha, ::tensorflow::Input l1, ::tensorflow::Input l2, ::tensorflow::Input grad, ::tensorflow::Input indices, const ResourceSparseApplyProximalGradientDescent::Attrs & attrs )
operator::tensorflow::Operation
operator::tensorflow::Operation() const
Publiczne funkcje statyczne
Użyj blokady
Attrs UseLocking( bool x )