Skip to content

Commit dbd54cc

Browse files
committed
revert change in ChiSquared
1 parent 8aca065 commit dbd54cc

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

pymc/distributions/continuous.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2577,20 +2577,12 @@ class ChiSquared:
25772577
Degrees of freedom (nu > 0).
25782578
"""
25792579

2580-
name = "chi_squared"
2581-
extended_signature = "[rng],[size],(),()->[rng],()"
2582-
_print_name = ("ChiSquared", "\\operatorname{ChiSquared}")
2583-
25842580
def __new__(cls, name, nu, **kwargs):
2585-
obj = Gamma(name, alpha=nu / 2, beta=1 / 2, **kwargs)
2586-
obj.owner.op._print_name = cls._print_name
2587-
return obj
2581+
return Gamma(name, alpha=nu / 2, beta=1 / 2, **kwargs)
25882582

25892583
@classmethod
25902584
def dist(cls, nu, **kwargs):
2591-
obj = Gamma.dist(alpha=nu / 2, beta=1 / 2, **kwargs)
2592-
obj.owner.op._print_name = cls._print_name
2593-
return obj
2585+
return Gamma.dist(alpha=nu / 2, beta=1 / 2, **kwargs)
25942586

25952587

25962588
class WeibullBetaRV(SymbolicRandomVariable):

0 commit comments

Comments
 (0)