tf.contrib.distributions.Beta.__init__(a, b, validate_args=False, allow_nan_stats=True, name='Beta')
Initialize a batch of Beta distributions.
Args:
-
a: Positive floating point tensor with shape broadcastable to[N1,..., Nm]m >= 0. Defines this as a batch ofN1 x ... x Nmdifferent Beta distributions. This also defines the dtype of the distribution. -
b: Positive floating point tensor with shape broadcastable to[N1,..., Nm]m >= 0. Defines this as a batch ofN1 x ... x Nmdifferent Beta distributions. -
validate_args:Boolean, defaultFalse. Whether to assert valid values for parametersa,b, andxinprobandlog_prob. IfFalseand inputs are invalid, correct behavior is not guaranteed. -
allow_nan_stats:Boolean, defaultTrue. IfFalse, raise an exception if a statistic (e.g. mean/mode/etc...) is undefined for any batch member. IfTrue, batch members with valid parameters leading to undefined statistics will return NaN for this statistic. name: The name to prefix Ops created by this distribution class.Examples:
# Define 1-batch. dist = Beta(1.1, 2.0) # Define a 2-batch. dist = Beta([1.0, 2.0], [4.0, 5.0])
Please login to continue.