เทนเซอร์โฟลว์:: ปฏิบัติการ:: ใช้ ProximalGradientDescent

#include <training_ops.h>

อัปเดต '*var' เป็นอัลกอริทึม FOBOS ด้วยอัตราการเรียนรู้คงที่

สรุป

prox_v = var - alpha * เดลต้า var = เครื่องหมาย (prox_v)/(1+alpha*l2) * สูงสุด{|prox_v|-alpha*l1,0}

ข้อโต้แย้ง:

  • ขอบเขต: วัตถุ ขอบเขต
  • var: ควรมาจากตัวแปร ()
  • อัลฟา: ปัจจัยการปรับขนาด ต้องเป็นสเกลาร์
  • 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)

โครงสร้าง

เทนเซอร์โฟลว์ :: ops :: ApplyProximalGradientDescent :: Attrs

ตัวตั้งค่าแอตทริบิวต์ทางเลือกสำหรับ ApplyProximalGradientDescent

คุณลักษณะสาธารณะ

การดำเนินการ

Operation operation

ออก

::tensorflow::Output out

งานสาธารณะ

ใช้ ProximalGradientDescent

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

ใช้ ProximalGradientDescent

 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
)