tensorflow::ops::RandomGamma
#include <random_ops.h>ส่งคืนค่าสุ่มจาก1การแจกแจงแกมมา (Gamma distribution) ที่อธิบายโดยตัวแปรอัลฟา (alpha)
สรุป
การดำเนินการนี้ใช้อัลกอริธึมของ Marsaglia และคณะ เพื่อให้ได้ตัวอย่างผ่านการแปลงและการปฏิเสธจากคู่ของตัวแปรสุ่มแบบเอกรูปและแบบปกติ ดูรายละเอียดได้ ที่ http://dl.acm.org/citation.cfm?id=358414
ข้อโต้แย้ง:
- ขอบเขต: วัตถุ ขอบเขต
- shape: เทนเซอร์จำนวนเต็ม 1 มิติ รูปร่างของตัวอย่างอิสระที่จะสุ่มจากแต่ละการแจกแจงที่อธิบายโดยพารามิเตอร์รูปร่างที่กำหนดในอัลฟา
- อัลฟา: เทนเซอร์ที่แต่ละค่าสเกลาร์เป็นพารามิเตอร์ "รูปร่าง" ซึ่งอธิบายการแจกแจงแกมมาที่เกี่ยวข้อง
คุณลักษณะเสริม (ดูที่ Attrs ):
- seed: หาก
seedหรือseed2ตัวใดตัวหนึ่งถูกตั้งค่าเป็นค่าที่ไม่ใช่ศูนย์ ตัวสร้างเลขสุ่มจะเริ่มต้นด้วยค่า seed ที่กำหนดให้ มิฉะนั้น จะเริ่มต้นด้วยค่า seed แบบสุ่ม - seed2: เมล็ดพันธุ์ที่สองเพื่อหลีกเลี่ยงการชนกันของเมล็ดพันธุ์
การส่งคืนสินค้า:
-
Output: เทนเซอร์ที่มีรูปร่างshape + shape(alpha)แต่ละส่วน[:, ..., :, i0, i1, ...iN]ประกอบด้วยตัวอย่างที่ดึงมาสำหรับalpha[i0, i1, ...iN]ชนิดข้อมูลของเอาต์พุตตรงกับชนิดข้อมูลของ alpha
ตัวสร้างและตัวทำลาย | |
|---|---|
RandomGamma (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, :: tensorflow::Input alpha) | |
RandomGamma (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, :: tensorflow::Input alpha, const RandomGamma::Attrs & attrs) |
คุณลักษณะสาธารณะ | |
|---|---|
operation | |
output | |
หน้าที่สาธารณะ | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
ฟังก์ชันคงที่สาธารณะ | |
|---|---|
Seed (int64 x) | |
Seed2 (int64 x) | |
โครงสร้าง | |
|---|---|
| tensorflow::ops::RandomGamma::Attrs | ตัวเลือกการตั้งค่าแอตทริบิวต์สำหรับ RandomGamma ( ไม่จำเป็น) |
คุณลักษณะสาธารณะ
การดำเนินการ
Operation operation
เอาต์พุต
::tensorflow::Output output
หน้าที่สาธารณะ
แรนดอมแกมมา
RandomGamma( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input alpha )
แรนดอมแกมมา
RandomGamma( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input alpha, const RandomGamma::Attrs & attrs )
โหนด
::tensorflow::Node * node() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::อินพุต
operator::tensorflow::Input() const
ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต
operator::tensorflow::Output() const
ฟังก์ชันคงที่สาธารณะ
เมล็ดพันธุ์
Attrs Seed( int64 x )
เมล็ดพันธุ์2
Attrs Seed2( int64 x )