텐서플로우:: ops:: 랜덤포아송V2
#include <random_ops.h>지정된 비율에 따른 포아송 분포에서 무작위 값을 출력합니다.
요약
이 작업은 처리 속도에 따라 두 가지 알고리즘을 사용합니다. 처리 속도가 10 이상이면 Hormann의 알고리즘을 사용하여 변환-거부 방식을 통해 샘플을 획득합니다. 자세한 내용은 http://www.sciencedirect.com/science/article/pii/0167668793909974 를 참조하십시오.
그렇지 않으면, 균일한 확률 변수를 곱하여 샘플을 얻기 위해 Knuth의 알고리즘이 사용됩니다. Donald E. Knuth(1969)의 저서, Seminumerical Algorithms. The Art of Computer Programming, Volume 2. Addison Wesley를 참조하십시오.
논거:
- 범위: Scope 객체
- shape: 1차원 정수 텐서. rate에 주어진 shape 매개변수로 설명되는 각 분포에서 추출할 독립 샘플의 모양.
- 비율: 각 스칼라가 관련 포아송 분포를 설명하는 "비율" 매개변수인 텐서입니다.
선택적 속성( Attrs 참조):
- seed:
seed또는seed2하나라도 0이 아닌 값으로 설정되면, 지정된 시드를 사용하여 난수 생성기를 초기화합니다. 그렇지 않으면 임의의 시드를 사용합니다. - seed2: 시드 충돌을 방지하기 위한 두 번째 시드입니다.
보고:
-
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) | |
구조 | |
|---|---|
| 텐서플로우:: ops:: RandomPoissonV2:: Attrs | RandomPoissonV2 에 대한 선택적 속성 설정기입니다. |
공개 속성
작업
Operation operation
산출
::tensorflow::Output output
공공 기능
랜덤포아송V2
RandomPoissonV2( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input rate )
랜덤포아송V2
RandomPoissonV2( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input rate, const RandomPoissonV2::Attrs & attrs )
마디
::tensorflow::Node * node() const
연산자::텐서플로우::입력
operator::tensorflow::Input() const
연산자::텐서플로우::출력
operator::tensorflow::Output() const
공개 정적 함수
디타입
Attrs Dtype( DataType x )
씨앗
Attrs Seed( int64 x )
시드2
Attrs Seed2( int64 x )