tensorflow:: ops:: ApplyProximalGradientDescent
#include <training_ops.h>'*var'를 고정 학습률을 사용하는 FOBOS 알고리즘으로 업데이트합니다.
요약
prox_v = var - alpha * delta var = sign(prox_v)/(1+alpha*l2) * max{|prox_v|-alpha*l1,0}
논거:
- 범위: Scope 객체
- var: Variable()에서 가져온 값이어야 합니다.
- 알파: 스케일링 계수. 스칼라 값이어야 합니다.
- l1: L1 정규화. 스칼라 값이어야 합니다.
- l2: L2 정규화. 스칼라 값이어야 합니다.
- 델타: 변화량.
선택적 속성( Attrs 참조):
- use_locking: True로 설정하면 뺄셈 연산이 락으로 보호됩니다. 그렇지 않으면 동작은 정의되지 않지만, 경합이 줄어들 수 있습니다.
보고:
-
Output: "var"와 동일합니다.
생성자와 소멸자 | |
|---|---|
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) |
공개 속성 | |
|---|---|
operation | |
out | |
공공 기능 | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
공개 정적 함수 | |
|---|---|
UseLocking (bool x) | |
구조 | |
|---|---|
| 텐서플로우:: ops:: ApplyProximalGradientDescent:: Attrs | ApplyProximalGradientDescent 에 대한 선택적 속성 설정기입니다. |
공개 속성
작업
Operation operation
밖으로
::tensorflow::Output out
공공 기능
근접 경사 하강법을 적용합니다
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 )
마디
::tensorflow::Node * node() const
연산자::텐서플로우::입력
operator::tensorflow::Input() const
연산자::텐서플로우::출력
operator::tensorflow::Output() const
공개 정적 함수
잠금 사용
Attrs UseLocking( bool x )