tensorflow:: אופס:: ResourceSparseApplyProximalGradientDescent

#include <training_ops.h>

עדכון דל '*var' כאלגוריתם FOBOS עם קצב למידה קבוע.

סיכום

כלומר עבור שורות שיש לנו גראד עבורן, אנו מעדכנים את var באופן הבא: prox_v = var - alpha * grad var = sign(prox_v)/(1+alpha*l2) * max{|prox_v|-alpha*l1,0}

טיעונים:

  • scope: אובייקט Scope
  • var: צריך להיות מ-Variable().
  • אלפא: גורם קנה מידה. חייב להיות סקלר.
  • l1: הסדרת L1. חייב להיות סקלר.
  • l2: הסדרת L2. חייב להיות סקלר.
  • grad: השיפוע.
  • מדדים: וקטור של מדדים למימד הראשון של var ו-acum.

מאפיינים אופציונליים (ראה Attrs ):

  • use_locking: אם נכון, החיסור יהיה מוגן על ידי מנעול; אחרת ההתנהגות אינה מוגדרת, אך עלולה להפגין פחות מחלוקת.

החזרות:

בנאים והורסים

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

 ResourceSparseApplyProximalGradientDescent(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input var,
  ::tensorflow::Input alpha,
  ::tensorflow::Input l1,
  ::tensorflow::Input l2,
  ::tensorflow::Input grad,
  ::tensorflow::Input indices
)

ResourceSparseApplyProximalGradientDescent

 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::פעולה

 operator::tensorflow::Operation() const 

פונקציות סטטיות ציבוריות

השתמש בנעילה

Attrs UseLocking(
  bool x
)