Skip to content

Commit

Permalink
add size arg
Browse files Browse the repository at this point in the history
  • Loading branch information
wd60622 committed Nov 13, 2023
1 parent de2e784 commit b720605
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytensor/tensor/random/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def gamma(shape, rate=None, scale=None, **kwargs):
return _gamma(shape, scale, **kwargs)


def chisquare(df, **kwargs):
def chisquare(df, size=None, **kwargs):
r"""Draw samples from a chisquare distribution.
The probability density function for `chisquare` in terms of the number of degrees of
Expand Down Expand Up @@ -517,7 +517,7 @@ def chisquare(df, **kwargs):
returned. Default is `None` in which case a single random variable
is returned.
"""
return gamma(shape=df / 2.0, scale=2.0, **kwargs)
return gamma(shape=df / 2.0, scale=2.0, size=size, **kwargs)


class ParetoRV(ScipyRandomVariable):
Expand Down

0 comments on commit b720605

Please sign in to comment.