LostTech.TensorFlow : API Documentation

Type Deterministic

Namespace tensorflow.contrib.distributions

Parent _BaseDeterministic

Interfaces IDeterministic

Scalar `Deterministic` distribution on the real line.

The scalar `Deterministic` distribution is parameterized by a [batch] point `loc` on the real line. The distribution is supported at this point only, and corresponds to a random variable that is constant, equal to `loc`.

See [Degenerate rv](https://en.wikipedia.org/wiki/Degenerate_distribution).

#### Mathematical Details

The probability mass function (pmf) and cumulative distribution function (cdf) are

```none pmf(x; loc) = 1, if x == loc, else 0 cdf(x; loc) = 1, if x >= loc, else 0 ```

#### Examples
Show Example
import tensorflow_probability as tfp
            tfd = tfp.distributions 

# Initialize a single Deterministic supported at zero. constant = tfd.Deterministic(0.) constant.prob(0.) ==> 1. constant.prob(2.) ==> 0.

# Initialize a [2, 2] batch of scalar constants. loc = [[0., 1.], [2., 3.]] x = [[0., 1.1], [1.99, 3.]] constant = tfd.Deterministic(loc) constant.prob(x) ==> [[1., 0.], [0., 1.]]


Public properties

object allow_nan_stats get;

object allow_nan_stats_dyn get;

object atol get;

object atol_dyn get;

TensorShape batch_shape get;

object batch_shape_dyn get;

object dtype get;

object dtype_dyn get;

TensorShape event_shape get;

object event_shape_dyn get;

object loc get;

object loc_dyn get;

string name get;

object name_dyn get;

IDictionary<object, object> parameters get;

object parameters_dyn get;

object PythonObject get;

object reparameterization_type get;

object reparameterization_type_dyn get;

object rtol get;

object rtol_dyn get;

object validate_args get;

object validate_args_dyn get;