Skip to content

Commit

Permalink
Fix typos in docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
sroecker authored and ankurankan committed May 20, 2017
1 parent 1eaaeb9 commit bfe1da0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pgmpy/factors/continuous/ContinuousFactor.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ def __init__(self, variables, pdf, *args, **kwargs):
>>> import numpy as np
>>> from scipy.special import beta
>>> from pgmpy.factors.continuous import ContinuousFactor
# Two variable drichlet ditribution with alpha = (1,2)
>>> def drichlet_pdf(x, y):
# Two variable dirichlet distribution with alpha = (1,2)
>>> def dirichlet_pdf(x, y):
... return (np.power(x, 1) * np.power(y, 2)) / beta(x, y)
>>> dirichlet_factor = ContinuousFactor(['x', 'y'], drichlet_pdf)
>>> dirichlet_factor = ContinuousFactor(['x', 'y'], dirichlet_pdf)
>>> dirichlet_factor.scope()
['x', 'y']
>>> dirichlet_factor.assignment(5,6)
Expand Down Expand Up @@ -129,7 +129,7 @@ def copy(self):
>>> import numpy as np
>>> from scipy.special import beta
>>> from pgmpy.factors.continuous import ContinuousFactor
# Two variable drichlet ditribution with alpha = (1,2)
# Two variable dirichlet distribution with alpha = (1,2)
>>> def dirichlet_pdf(x, y):
... return (np.power(x, 1) * np.power(y, 2)) / beta(x, y)
>>> dirichlet_factor = ContinuousFactor(['x', 'y'], dirichlet_pdf)
Expand Down
2 changes: 1 addition & 1 deletion pgmpy/factors/distributions/CustomDistribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def copy(self):
>>> import numpy as np
>>> from scipy.special import beta
>>> from pgmpy.factors.distributions import CustomDistribution
# Two variable drichlet ditribution with alpha = (1,2)
# Two variable dirichlet distribution with alpha = (1,2)
>>> def dirichlet_pdf(x, y):
... return (np.power(x, 1) * np.power(y, 2)) / beta(x, y)
>>> dirichlet_dist = CustomDistribution(variables=['x', 'y'],
Expand Down

0 comments on commit bfe1da0

Please sign in to comment.