Add Dirichlet Multinomial to PyTorch Distributions #56030
Labels
function request
A request for a new function or the addition of new arguments/modes to an existing function.
module: distributions
Related to torch.distributions
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
馃殌 Feature
The Dirichlet-Multinomial distribution is something I need for my research. TensorFlow has this distribution implemented (https://www.tensorflow.org/probability/api_docs/python/tfp/distributions/DirichletMultinomial). Can someone please implement this distribution in PyTorch, or point me towards how I might implement it myself?
Motivation
Common probabilistic language models (e.g. mixtures of unigrams) require using Dirichlet-Multinomial distributions.
Pitch
Add the distribution to Pytorch. That is, there should be a distribution
torch.distributions.dirichlet.DirichletMultinomial
.cc @fritzo @neerajprad @alicanb @vishwakftw @nikitaved
The text was updated successfully, but these errors were encountered: