@@ -24,13 +24,13 @@ def check_random_state(seed=None):
24
24
"""Turn `seed` into a `numpy.random.Generator` instance.
25
25
Parameters
26
26
----------
27
- seed : {None, int, `numpy.random. Generator`,
28
- ` numpy.random.RandomState`}, optional
29
- If `seed` is None the `numpy.random.Generator` singleton is used.
30
- If `seed` is an int, a new ``Generator `` instance is used,
31
- seeded with `seed`.
32
- If `seed` is already a ``Generator`` or ``RandomState`` instance then
33
- that instance is used.
27
+ seed : {None, int, Generator, RandomState}, optional
28
+ If `seed` is None (or `np.random`), the ` numpy.random.RandomState`
29
+ singleton is used.
30
+ If `seed` is an int, a new ``numpy.random.RandomState `` instance
31
+ is used, seeded with `seed`.
32
+ If `seed` is already a ``numpy.random. Generator`` or
33
+ ``numpy.random.RandomState`` instance then that instance is used.
34
34
Returns
35
35
-------
36
36
seed : {`numpy.random.Generator`, `numpy.random.RandomState`}
@@ -210,14 +210,13 @@ class must extend from `SimulationSmoothResults`.
210
210
than -1, only simulation will be performed (i.e. simulation
211
211
smoothing will not be performed), so that only the `generated_obs`
212
212
and `generated_state` attributes will be available.
213
- random_state : {None, int, `numpy.random.Generator`,
214
- `numpy.random.RandomState`}, optional
213
+ random_state : {None, int, Generator, RandomState}, optional
215
214
If `seed` is None (or `np.random`), the `numpy.random.RandomState`
216
215
singleton is used.
217
- If `seed` is an int, a new ``RandomState`` instance is used,
218
- seeded with `seed`.
219
- If `seed` is already a ``Generator`` or ``RandomState`` instance
220
- then that instance is used.
216
+ If `seed` is an int, a new ``numpy.random. RandomState`` instance
217
+ is used, seeded with `seed`.
218
+ If `seed` is already a ``numpy.random. Generator`` or
219
+ ``numpy.random.RandomState`` instance then that instance is used.
221
220
**kwargs
222
221
Additional keyword arguments, used to set the simulation output.
223
222
See `set_simulation_output` for more details.
@@ -298,14 +297,13 @@ class SimulationSmoothResults:
298
297
A Statespace representation
299
298
simulation_smoother : {{prefix}}SimulationSmoother object
300
299
The Cython simulation smoother object with which to simulation smooth.
301
- random_state : {None, int, `numpy.random.Generator`,
302
- `numpy.random.RandomState`}, optional
300
+ random_state : {None, int, Generator, RandomState}, optional
303
301
If `seed` is None (or `np.random`), the `numpy.random.RandomState`
304
302
singleton is used.
305
- If `seed` is an int, a new ``RandomState`` instance is used,
306
- seeded with `seed`.
307
- If `seed` is already a ``Generator`` or ``RandomState`` instance
308
- then that instance is used.
303
+ If `seed` is an int, a new ``numpy.random. RandomState`` instance
304
+ is used, seeded with `seed`.
305
+ If `seed` is already a ``numpy.random. Generator`` or
306
+ ``numpy.random.RandomState`` instance then that instance is used.
309
307
310
308
Attributes
311
309
----------
@@ -606,14 +604,13 @@ def simulate(self, simulation_output=-1,
606
604
then it is assumed to contain draws from the standard Normal
607
605
distribution that must be transformed using the `initial_state_cov`
608
606
covariance matrix. Default is False.
609
- random_state : {None, int, `numpy.random.Generator`,
610
- `numpy.random.RandomState`}, optional
607
+ random_state : {None, int, Generator, RandomState}, optional
611
608
If `seed` is None (or `np.random`), the `numpy.random.RandomState`
612
609
singleton is used.
613
- If `seed` is an int, a new ``RandomState`` instance is used,
614
- seeded with `seed`.
615
- If `seed` is already a ``Generator`` or ``RandomState`` instance
616
- then that instance is used.
610
+ If `seed` is an int, a new ``numpy.random. RandomState`` instance
611
+ is used, seeded with `seed`.
612
+ If `seed` is already a ``numpy.random. Generator`` or
613
+ ``numpy.random.RandomState`` instance then that instance is used.
617
614
disturbance_variates : bool, optional
618
615
Deprecated, please use pretransformed_measurement_shocks and
619
616
pretransformed_state_shocks instead.
0 commit comments