tf.contrib.distributions.Categorical.__init__(logits, dtype=tf.int32, validate_args=False, allow_nan_stats=True, name='Categorical')
Initialize Categorical distributions using class log-probabilities.
Args:
-
logits
: An N-DTensor
,N >= 1
, representing the log probabilities of a set of Categorical distributions. The firstN - 1
dimensions index into a batch of independent distributions and the last dimension indexes into the classes. -
dtype
: The type of the event samples (default: int32). -
validate_args
: Unused in this distribution. -
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
: A name for this distribution (optional).
Please login to continue.