tfp.edward2.Dirichlet( *args, **kwargs )
Create a random variable for Dirichlet.
See Dirichlet for more details.
Original Docstring for Distribution
Initialize a batch of Dirichlet distributions.
concentration: Positive floating-point
Tensorindicating mean number of class occurrences; aka "alpha". Implies
self.event_shape, i.e., if
concentration.shape = [N1, N2, ..., Nm, k]then
batch_shape = [N1, N2, ..., Nm]and
event_shape = [k].
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.