Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix bugs about multinomial distribution #68

Merged
merged 3 commits into from
Apr 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pixyz/distributions/exponential_distributions.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ class Multinomial(DistributionBase):
Multinomial distribution parameterized by :attr:`total_count` and :attr:`probs`.
"""

def __init__(self, cond_var=[], var=["x"], name="p", dim=None, **kwargs):
self.params_keys = ["total_count", "probs"]
def __init__(self, cond_var=[], var=["x"], name="p", dim=None, total_count=1, **kwargs):
self.params_keys = ["probs"]
self.DistributionTorch = MultinomialTorch

super().__init__(cond_var=cond_var, var=var, name=name, dim=dim, **kwargs)
Expand Down