tf.contrib.distributions.Categorical.__init__()

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-D Tensor, N >= 1, representing the log probabilities of a set of Categorical distributions. The first N - 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, default True. If False, raise an exception if a statistic (e.g. mean/mode/etc...) is undefined for any batch member. If True, batch members with valid parameters leading to undefined statistics will return NaN for this statistic.
  • name: A name for this distribution (optional).
doc_TensorFlow
2016-10-14 12:48:48
Comments
Leave a Comment

Please login to continue.