tensorflow:: ops:: ResourceSparseApplyProximalGradientDescent

#include <training_ops.h>

固定学習率を用いたFOBOSアルゴリズムによる疎な更新「*var」。

まとめ

つまり、grad が設定されている行については、var を次のように更新します。prox_v = var - alpha * grad var = sign(prox_v)/(1+alpha*l2) * max{|prox_v|-alpha*l1,0}

議論:

  • スコープ:スコープオブジェクト
  • var: Variable() から取得する必要があります。
  • alpha: スケーリング係数。スカラー値である必要があります。
  • l1: L1正則化。スカラー値である必要があります。
  • l2: L2正則化。スカラー値である必要があります。
  • grad: 勾配。
  • インデックス: var と accum の第 1 次元へのインデックスのベクトル。

オプション属性( Attrs参照):

  • use_locking: Trueの場合、減算はロックによって保護されます。それ以外の場合は動作は未定義ですが、競合が少なくなる可能性があります。

返品:

構築者と破壊者

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)

公開属性

operation

公的機能

operator::tensorflow::Operation () const

パブリック静的関数

UseLocking (bool x)

構造

tensorflow:: ops:: ResourceSparseApplyProximalGradientDescent:: Attrs

ResourceSparseApplyProximalGradientDescentのオプション属性セッター。

公開属性

手術

Operation operation

公的機能

リソーススパース近位勾配降下法を適用する

 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
)

オペレーター::tensorflow::Operation

 operator::tensorflow::Operation() const 

パブリック静的関数

ロックを使用する

Attrs UseLocking(
  bool x
)