tensorflow:: ops:: ApplyProximalGradientDescent

#include <training_ops.h>

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

תַקצִיר

prox_v = משתנה - אלפא * דלתא משתנה = סימן(prox_v)/(1+אלפא*l2) * מקסימום{|prox_v|-אלפא*l1,0}

טיעונים:

  • היקף: אובייקט היקף
  • var: צריך להיות מתוך Variable().
  • אלפא: גורם קנה מידה. חייב להיות סקלרי.
  • l1: רגולריזציה של L1. חייב להיות סקלרי.
  • l2: רגולריזציה של L2. חייב להיות סקלרי.
  • דלתא: השינוי.

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

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

החזרות:

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

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 

אופרטור::tensorflow::קלט

 operator::tensorflow::Input() const 

אופרטור::tensorflow::פלט

 operator::tensorflow::Output() const 

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

שימוש בנעילה

Attrs UseLocking(
  bool x
)