Skip to content

Commit 3cb1359

Browse files
neelriyerricardoV94
authored andcommitted
change function signature
1 parent 6a75744 commit 3cb1359

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pymc3/distributions/dist_math.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ def grad(self, inp, grads):
387387
i0e = Elemwise(i0e_scalar, name="Elemwise{i0e,no_inplace}")
388388

389389

390-
def random_choice(*args, **kwargs):
390+
def random_choice(p, size):
391391
"""Return draws from categorical probability functions
392392
393393
Args:
@@ -403,8 +403,6 @@ def random_choice(*args, **kwargs):
403403
random sample: array
404404
405405
"""
406-
p = kwargs.pop("p")
407-
size = kwargs.pop("size")
408406
k = p.shape[-1]
409407

410408
if p.ndim > 1:

0 commit comments

Comments
 (0)