@@ -231,8 +231,8 @@ class GaussianRandomWalk(distribution.Continuous):
231
231
.. warning:: init will be cloned, rendering them independent of the ones passed as input.
232
232
233
233
steps : int, optional
234
- Number of steps in Gaussian Random Walk (steps > 0). Only needed if size is
235
- used to specify distribution
234
+ Number of steps in Gaussian Random Walk (steps > 0). Only needed if shape is not
235
+ provided.
236
236
"""
237
237
238
238
rv_op = gaussianrandomwalk
@@ -248,16 +248,14 @@ def __new__(cls, *args, steps=None, **kwargs):
248
248
return super ().__new__ (cls , * args , steps = steps , ** kwargs )
249
249
250
250
@classmethod
251
- def dist (
252
- cls , mu = 0.0 , sigma = 1.0 , * , init_dist = None , steps = None , size = None , ** kwargs
253
- ) -> at .TensorVariable :
251
+ def dist (cls , mu = 0.0 , sigma = 1.0 , * , init_dist = None , steps = None , ** kwargs ) -> at .TensorVariable :
254
252
255
253
mu = at .as_tensor_variable (floatX (mu ))
256
254
sigma = at .as_tensor_variable (floatX (sigma ))
257
255
258
256
steps = get_steps (
259
257
steps = steps ,
260
- shape = kwargs .get ("shape" , None ),
258
+ shape = kwargs .get ("shape" ),
261
259
step_shape_offset = 1 ,
262
260
)
263
261
if steps is None :
@@ -292,7 +290,7 @@ def dist(
292
290
# Ignores logprob of init var because that's accounted for in the logp method
293
291
init_dist = ignore_logprob (init_dist )
294
292
295
- return super ().dist ([mu , sigma , init_dist , steps ], size = size , ** kwargs )
293
+ return super ().dist ([mu , sigma , init_dist , steps ], ** kwargs )
296
294
297
295
def moment (rv , size , mu , sigma , init_dist , steps ):
298
296
grw_moment = at .zeros_like (rv )
@@ -384,8 +382,7 @@ class AR(SymbolicDistribution):
384
382
Order of the AR process. Inferred from length of the last dimension of rho, if
385
383
possible. ar_order = rho.shape[-1] if constant else rho.shape[-1] - 1
386
384
steps : int, optional
387
- Number of steps in AR process (steps > 0). Only needed if size is used to
388
- specify distribution
385
+ Number of steps in AR process (steps > 0). Only needed if shape is not provided.
389
386
390
387
Notes
391
388
-----
0 commit comments