tensorflow :: ops :: RandomPoissonV2
#include <random_ops.h>
Mengeluarkan nilai acak dari distribusi Poisson yang dijelaskan oleh rate.
Ringkasan
Operasi ini menggunakan dua algoritma, tergantung pada rate. Jika rate> = 10, maka algoritma oleh Hormann digunakan untuk memperoleh sampel melalui transformasi-penolakan. Lihat http://www.sciencedirect.com/science/article/pii/0167668793909974 .
Jika tidak, algoritma Knuth digunakan untuk memperoleh sampel melalui perkalian variabel acak yang seragam. Lihat Donald E. Knuth (1969). Algoritma Seminumerik. Seni Pemrograman Komputer, Volume 2. Addison Wesley
Argumen:
- scope: Objek Scope
- Bentuk: tensor integer 1-D. Bentuk sampel independen untuk diambil dari setiap distribusi yang dijelaskan oleh parameter bentuk yang diberikan dalam tarif.
- rate: Tensor di mana setiap skalar adalah parameter "rate" yang menjelaskan distribusi poisson terkait.
Atribut opsional (lihat Attrs
):
- benih: Jika salah satu
seed
atauseed2
ditetapkan menjadi bukan nol, generator nomor acak disemai oleh benih yang diberikan. Jika tidak, itu diunggulkan dengan benih acak. - seed2: Benih kedua untuk menghindari tumbukan benih.
Pengembalian:
-
Output
: Tensor dengan bentukshape + shape(rate)
. Setiap potongan[:, ..., :, i0, i1, ...iN]
berisi sampel yang diambil untukrate[i0, i1, ...iN]
.
Pembuat dan Penghancur | |
---|---|
RandomPoissonV2 (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, :: tensorflow::Input rate) | |
RandomPoissonV2 (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, :: tensorflow::Input rate, const RandomPoissonV2::Attrs & attrs) |
Atribut publik | |
---|---|
operation | |
output |
Fungsi publik | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Fungsi statis publik | |
---|---|
Dtype (DataType x) | |
Seed (int64 x) | |
Seed2 (int64 x) |
Structs | |
---|---|
tensorflow :: ops :: RandomPoissonV2 :: Attrs | Penyetel atribut opsional untuk RandomPoissonV2 . |
Atribut publik
operasi
Operation operation
keluaran
::tensorflow::Output output
Fungsi publik
RandomPoissonV2
RandomPoissonV2( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input rate )
RandomPoissonV2
RandomPoissonV2( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input rate, const RandomPoissonV2::Attrs & attrs )
simpul
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Keluaran
operator::tensorflow::Output() const
Fungsi statis publik
Dtype
Attrs Dtype( DataType x )
Benih
Attrs Seed( int64 x )
Benih2
Attrs Seed2( int64 x )