sample_bernoulli: Bernoulli sample

View source: R/samplers.R

sample_bernoulliR Documentation

Bernoulli sample

Description

Samples from Bernoulli distribution.

Usage

sample_bernoulli(
  probs = NULL,
  logits = NULL,
  dtype = tf$int32,
  sample_shape = list(),
  seed = NULL
)

Arguments

probs

probabilities

logits

logits

dtype

the data type

sample_shape

a list/vector of integers

seed

integer, random seed

Value

a Tensor


henry090/tfaddons documentation built on April 7, 2022, 11:27 p.m.