tensorflow:: ops:: RandomPoissonV2
#include <random_ops.h>レートで記述されるポアソン分布からランダムな値を出力します。
まとめ
この操作では、レートに応じて2つのアルゴリズムを使用します。レートが10以上の場合、変換拒否によってサンプルを取得するためにHormannのアルゴリズムが使用されます。詳細はhttp://www.sciencedirect.com/science/article/pii/0167668793909974をご覧ください。
それ以外の場合は、一様乱数を乗算することによってサンプルを取得するために、クヌースのアルゴリズムが使用されます。ドナルド・E・クヌース(1969)著『半数値アルゴリズム』(コンピュータプログラミングの技法、第2巻、アディソン・ウェスリー)を参照してください。
議論:
- スコープ:スコープオブジェクト
- shape: 1次元整数テンソル。rateで指定された形状パラメータによって記述される各分布から抽出する独立サンプルの形状。
- rate: 各スカラーが関連するポアソン分布を記述する「rate」パラメータであるテンソル。
オプション属性( Attrs参照):
- seed:
seedまたはseed2いずれかがゼロ以外の値に設定されている場合、乱数生成器は指定されたシード値で初期化されます。それ以外の場合は、ランダムなシード値で初期化されます。 - seed2: シードの衝突を避けるための2つ目のシード。
返品:
-
Output: 形状shape + shape(rate)のテンソル。各スライス[:, ..., :, i0, i1, ...iN]には、rate[i0, i1, ...iN]用に抽出されたサンプルが含まれます。
コンストラクターとデストラクタ | |
|---|---|
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) |
公開属性 | |
|---|---|
operation | |
output | |
公的機能 | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
パブリック静的関数 | |
|---|---|
Dtype (DataType x) | |
Seed (int64 x) | |
Seed2 (int64 x) | |
構造 | |
|---|---|
| tensorflow:: ops:: RandomPoissonV2:: Attrs | RandomPoissonV2のオプション属性設定子。 |
公開属性
手術
Operation operation
出力
::tensorflow::Output output
公的機能
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 )
ノード
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
パブリック静的関数
データ型
Attrs Dtype( DataType x )
シード
Attrs Seed( int64 x )
シード2
Attrs Seed2( int64 x )