|View source on GitHub|
Create a random variable for PlackettLuce.
tfp.edward2.PlackettLuce( *args, **kwargs )
See PlackettLuce for more details.
Original Docstring for Distribution
Initialize a batch of PlackettLuce distributions.
scores: An N-D
N >= 1, representing the scores of a set of elements to be permuted. The first
N - 1dimensions index into a batch of independent distributions and the last dimension represents a vector of scores for the elements.
dtype: The type of the event samples (default: int32).
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.