@@ -209,14 +209,17 @@ def __new__(
209
209
rng : optional
210
210
Random number generator to use with the RandomVariable.
211
211
dims : tuple, optional
212
- A tuple of dimension names known to the model.
212
+ A tuple of dimension names known to the model. When shape is not provided,
213
+ the shape of dims is used to define the shape of the variable.
213
214
initval : optional
214
215
Numeric or symbolic untransformed initial value of matching shape,
215
216
or one of the following initial value strategies: "moment", "prior".
216
217
Depending on the sampler's settings, a random jitter may be added to numeric, symbolic
217
218
or moment-based initial values in the transformed space.
218
219
observed : optional
219
220
Observed data to be passed when registering the random variable in the model.
221
+ When neither shape nor dims is provided, the shape of observed is used to
222
+ define the shape of the variable.
220
223
See ``Model.register_rv``.
221
224
total_size : float, optional
222
225
See ``Model.register_rv``.
@@ -405,14 +408,17 @@ def __new__(
405
408
name : str
406
409
Name for the new model variable.
407
410
dims : tuple, optional
408
- A tuple of dimension names known to the model.
411
+ A tuple of dimension names known to the model. When shape is not provided,
412
+ the shape of dims is used to define the shape of the variable.
409
413
initval : optional
410
414
Numeric or symbolic untransformed initial value of matching shape,
411
415
or one of the following initial value strategies: "moment", "prior".
412
416
Depending on the sampler's settings, a random jitter may be added to numeric,
413
417
symbolic or moment-based initial values in the transformed space.
414
418
observed : optional
415
419
Observed data to be passed when registering the random variable in the model.
420
+ When neither shape nor dims is provided, the shape of observed is used to
421
+ define the shape of the variable.
416
422
See ``Model.register_rv``.
417
423
total_size : float, optional
418
424
See ``Model.register_rv``.
0 commit comments