텐서플로우:: 작전:: 랜덤포아송V2

#include <random_ops.h>

비율로 설명되는 포아송 분포에서 임의의 값을 출력합니다.

요약

이 작업은 속도에 따라 두 가지 알고리즘을 사용합니다. rate >= 10이면 Hormann의 알고리즘을 사용하여 변환 거부를 통해 샘플을 획득합니다. http://www.sciencedirect.com/science/article/pii/0167668793909974를 참조하세요.

그렇지 않으면 Knuth의 알고리즘을 사용하여 균일 확률 변수를 곱하여 샘플을 얻습니다. Donald E. Knuth(1969)를 참조하십시오. 반수치 알고리즘. 컴퓨터 프로그래밍 기술, 2권. 애디슨 웨슬리

인수:

  • 범위: 범위 개체
  • 모양: 1차원 정수 텐서. 비율로 주어진 모양 매개변수에 의해 설명되는 각 분포에서 추출할 독립 표본의 모양입니다.
  • rate: 각 스칼라가 관련 포아송 분포를 설명하는 "rate" 매개변수인 텐서입니다.

선택적 속성( 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:: 속성

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 

공개 정적 함수

Dtype

Attrs Dtype(
  DataType x
)

씨앗

Attrs Seed(
  int64 x
)

시드2

Attrs Seed2(
  int64 x
)