tfp.edward2.MixtureSameFamily( *args, **kwargs )
Create a random variable for MixtureSameFamily.
See MixtureSameFamily for more details.
Original Docstring for Distribution
tfp.distributions.Categorical-like instance. Manages the probability of selecting components. The number of categories must match the rightmost batch dimension of the
components_distribution. Must have either scalar
tfp.distributions.Distribution-like instance. Right-most batch dimension indexes components.
Truedistribution parameters are checked for validity despite possibly degrading runtime performance. When
Falseinvalid inputs may silently render incorrect outputs.
True, statistics (e.g., mean, mode, variance) use the value "
NaN" to indicate the result is undefined. When
False, an exception is raised if one or more of the statistic's batch members are undefined.
strname prefixed to Ops created by this class.
if not mixture_distribution.dtype.is_integer.
ValueError: if mixture_distribution does not have scalar
components_distribution.batch_shape[:-1]are both fully defined and the former is neither scalar nor equal to the latter.
mixture_distributioncategories does not equal
components_distributionrightmost batch shape.