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 ofDistribution
implementingcdf
. -
lower_cutoff
:Tensor
with samedtype
as this distribution and shape able to be added to samples. Should be a whole number. DefaultNone
. If provided, base distribution's pdf/pmf should be defined atlower_cutoff
. -
upper_cutoff
:Tensor
with samedtype
as this distribution and shape able to be added to samples. Should be a whole number. DefaultNone
. If provided, base distribution's pdf/pmf should be defined atupper_cutoff - 1
.upper_cutoff
must be strictly greater thanlower_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
: Ifbase_dist_cls
is not a subclass ofDistribution
or continuous. -
NotImplementedError
: If the base distribution does not implementcdf
.
Please login to continue.