sample_bernoulli: Bernoulli sample

Description Usage Arguments Value

View source: R/samplers.R

Description

Samples from Bernoulli distribution.

Usage

1
2
3
4
5
6
7
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


tfaddons documentation built on July 2, 2020, 2:12 a.m.