tensorflow:: ops:: ResourceApplyProximalGradientDescent

#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().
  • ألفا: عامل القياس. يجب أن يكون قيمة عددية.
  • l1: تنظيم L1. يجب أن يكون قيمة عددية.
  • l2: تنظيم L2. يجب أن يكون قيمة عددية.
  • دلتا: التغيير.

السمات الاختيارية (انظر Attrs ):

  • استخدام القفل: إذا كانت القيمة صحيحة، فسيتم حماية عملية الطرح بواسطة قفل؛ وإلا فإن السلوك غير محدد، ولكنه قد يُظهر قدرًا أقل من التنازع.

المرتجعات:

البناة والمدمرون

ResourceApplyProximalGradientDescent (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input alpha, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input delta)
ResourceApplyProximalGradientDescent (const :: tensorflow::Scope & scope, :: tensorflow::Input var, :: tensorflow::Input alpha, :: tensorflow::Input l1, :: tensorflow::Input l2, :: tensorflow::Input delta, const ResourceApplyProximalGradientDescent::Attrs & attrs)

السمات العامة

operation

الوظائف العامة

operator::tensorflow::Operation () const

الدوال الثابتة العامة

UseLocking (bool x)

الهياكل

tensorflow:: ops:: ResourceApplyProximalGradientDescent:: Attrs

أدوات تعيين السمات الاختيارية لـ ResourceApplyProximalGradientDescent .

السمات العامة

عملية

Operation operation

الوظائف العامة

تطبيق التدرج التقريبي للموارد

 ResourceApplyProximalGradientDescent(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input alpha,
  ::tensorflow::Input l1,
  ::tensorflow::Input l2,
  ::tensorflow::Input delta
)

تطبيق التدرج التقريبي للموارد

 ResourceApplyProximalGradientDescent(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input alpha,
  ::tensorflow::Input l1,
  ::tensorflow::Input l2,
  ::tensorflow::Input delta,
  const ResourceApplyProximalGradientDescent::Attrs & attrs
)

operator::tensorflow::Operation

 operator::tensorflow::Operation() const 

الدوال الثابتة العامة

قفل الاستخدام

Attrs UseLocking(
  bool x
)