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(
  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

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

パブリック静的関数

ロックを使用する

Attrs UseLocking(
  bool x
)