tensorflow::ops::RandomPoissonV2
#include <random_ops.h>Oran ile tanımlanan Poisson dağılımından rastgele değerler üretir.
Özet
Bu işlem, orana bağlı olarak iki algoritma kullanır. Oran >= 10 ise, dönüşüm-reddetme yoluyla örnek elde etmek için Hormann algoritması kullanılır. Bkz. http://www.sciencedirect.com/science/article/pii/0167668793909974 .
Aksi takdirde, Knuth algoritması, tekdüze rastgele değişkenlerin çarpılması yoluyla örnekler elde etmek için kullanılır. Bkz. Donald E. Knuth (1969). Yarı Sayısal Algoritmalar. Bilgisayar Programlamanın Sanatı, Cilt 2. Addison Wesley
Argümanlar:
- kapsam: Bir Kapsam nesnesi
- Şekil: 1 boyutlu tamsayı tensörü. Oran bölümünde verilen şekil parametreleriyle tanımlanan her dağılımdan çekilecek bağımsız örneklerin şekli.
- Oran: Her bir skalerin, ilgili Poisson dağılımını tanımlayan bir "oran" parametresi olduğu bir tensör.
İsteğe bağlı özellikler (bkz. Attrs ):
- seed: Eğer
seedveyaseed2sıfırdan farklı bir değere ayarlanırsa, rastgele sayı üreteci verilen seed değeriyle başlatılır. Aksi takdirde, rastgele bir seed değeriyle başlatılır. - seed2: Tohum çakışmasını önlemek için ikinci bir tohum.
İadeler:
-
Output: Şekilshape + shape(rate)şeklinde bir tensör. Her dilim[:, ..., :, i0, i1, ...iN]rate[i0, i1, ...iN]için çekilen örnekleri içerir.
Yapıcılar ve Yıkıcılar | |
|---|---|
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) |
Genel özellikler | |
|---|---|
operation | |
output | |
Kamusal işlevler | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Herkese açık statik fonksiyonlar | |
|---|---|
Dtype (DataType x) | |
Seed (int64 x) | |
Seed2 (int64 x) | |
Yapılar | |
|---|---|
| tensorflow::ops::RandomPoissonV2::Attrs | RandomPoissonV2 için isteğe bağlı öznitelik ayarlayıcıları. |
Genel özellikler
operasyon
Operation operation
çıktı
::tensorflow::Output output
Kamusal işlevler
RastgelePoissonV2
RandomPoissonV2( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input rate )
RastgelePoissonV2
RandomPoissonV2( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input rate, const RandomPoissonV2::Attrs & attrs )
düğüm
::tensorflow::Node * node() const
operatör::tensorflow::Giriş
operator::tensorflow::Input() const
operatör::tensorflow::Çıktı
operator::tensorflow::Output() const
Herkese açık statik fonksiyonlar
Dtype
Attrs Dtype( DataType x )
Tohum
Attrs Seed( int64 x )
Tohum2
Attrs Seed2( int64 x )