|View source on GitHub|
Create a random variable for ContinuousBernoulli.
tfp.edward2.ContinuousBernoulli( *args, **kwargs )
See ContinuousBernoulli for more details.
Original Docstring for Distribution
Construct Bernoulli distributions.
logits: An N-D
Tensor. Each entry in the
Tensorparameterizes an independent continuous Bernoulli distribution with parameter sigmoid(logits). Only one of
probsshould be passed in. Note that this does not correspond to the log-odds as in the Bernoulli case.
probs: An N-D
Tensorrepresenting the parameter of a continuous Bernoulli. Each entry in the
Tensorparameterizes an independent continuous Bernoulli distribution. Only one of
probsshould be passed in. Note that this also does not correspond to a probability as in the Bernoulli case.
lims: A list with two floats containing the lower and upper limits used to approximate the continuous Bernoulli around 0.5 for numerical stability purposes.
dtype: The type of the event samples. Default:
float32. validate_args: Python
Truedistribution parameters are checked for validity despite possibly degrading runtime performance. When
Falseinvalid inputs may silently render incorrect outputs.
True, statistics (e.g., mean, mode, variance) use the value "
NaN" to indicate the result is undefined. When
False, an exception is raised if one or more of the statistic's batch members are undefined.
strname prefixed to Ops created by this class.
ValueError: If probs and logits are passed, or if neither are passed.