tf.contrib.distributions.QuantizedDistribution.__init__()

tf.contrib.distributions.QuantizedDistribution.__init__(base_dist_cls, lower_cutoff=None, upper_cutoff=None, name='QuantizedDistribution', **base_dist_args)

Construct a Quantized Distribution.

Some properties are inherited from the distribution defining X. In particular, validate_args and allow_nan_stats are determined for this QuantizedDistribution by reading the additional kwargs passed as base_dist_args.

Args:
  • base_dist_cls: the base distribution class to transform. Must be a subclass of Distribution implementing cdf.
  • lower_cutoff: Tensor with same dtype as this distribution and shape able to be added to samples. Should be a whole number. Default None. If provided, base distribution's pdf/pmf should be defined at lower_cutoff.
  • upper_cutoff: Tensor with same dtype as this distribution and shape able to be added to samples. Should be a whole number. Default None. If provided, base distribution's pdf/pmf should be defined at upper_cutoff - 1. upper_cutoff must be strictly greater than lower_cutoff.
  • name: The name for the distribution.
  • **base_dist_args: kwargs to pass on to dist_cls on construction. These determine the shape and dtype of this distribution.
Raises:
  • TypeError: If base_dist_cls is not a subclass of Distribution or continuous.
  • NotImplementedError: If the base distribution does not implement cdf.
doc_TensorFlow
2016-10-14 13:01:43
Comments
Leave a Comment

Please login to continue.