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}
引数:
- スコープ:スコープオブジェクト
- var:Variable()からのものである必要があります。
- alpha:スケーリング係数。スカラーである必要があります。
- 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) |
構造体 | |
---|---|
tensorflow :: ops :: ApplyProximalGradientDescent :: Attrs | ApplyProximalGradientDescentのオプションの属性セッター。 |
パブリック属性
操作
Operation operation
でる
::tensorflow::Output out
公の行事
ApplyProximalGradientDescent
ApplyProximalGradientDescent( const ::tensorflow::Scope & scope, ::tensorflow::Input var, ::tensorflow::Input alpha, ::tensorflow::Input l1, ::tensorflow::Input l2, ::tensorflow::Input delta )
ApplyProximalGradientDescent
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
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const
パブリック静的関数
UseLocking
Attrs UseLocking( bool x )