@@ -42,15 +42,14 @@ class RandomState(
4242
4343 For full documentation refer to `numpy.random.RandomState`.
4444
45- .. note::
46- *Compatibility Notice*
47-
48- While this class shares its API with the original `RandomState`, it has
49- been rewritten to use MKL's vector statistics functionality, that
50- provides efficient implementation of the MT19937.
51- As a consequence, this version is NOT seed-compatible with the original
52- `RandomState` and the result of `get_state` is NOT compatible with the
53- original `RandomState`
45+ Notes
46+ -----
47+ While this class shares its API with the original `RandomState`, it has
48+ been rewritten to use MKL's vector statistics functionality, that
49+ provides efficient implementation of the MT19937.
50+ As a consequence, this version is NOT seed-compatible with the original
51+ `RandomState` and the result of `get_state` is NOT compatible with the
52+ original `RandomState`
5453
5554 References
5655 -----
@@ -88,31 +87,29 @@ def get_state(self, legacy=True):
8887 out : {tuple(str, bytes), dict}
8988 The returned tuple has the following items:
9089
91- 1. a string specifying the basic psedo -random number generation
90+ 1. a string specifying the basic pseudo -random number generation
9291 algorithm. It should always be `MT19937` for this class.
9392 2. a bytes object holding content of Intel MKL's stream for the
9493 generator.
9594
9695 If `legacy` is False, a dictionary containing the state information
9796 is returned instead, with the following keys:
9897
99- 1. `bit_generator`: a string specifying the basic psedo -random
98+ 1. `bit_generator`: a string specifying the basic pseudo -random
10099 number generation algorithm. It should always be `MT19937`
101100 for this class.
102101 2. `state`: a dictionary guaranteed to contain the key
103- `mkl_stream`, whose value is a bytes object holding content of
104- Intel MKL's stream for the generator.
102+ `mkl_stream`, whose value is a bytes object holding content of
103+ Intel MKL's stream for the generator.
105104
106105 Compare with `numpy.random.get_state`.
107106
108- .. note::
109- *Compatibility Notice*
110-
107+ Notes
108+ -----
111109 As this class uses MKL in the backend, the state format is NOT
112110 compatible with the original `numpy.random.set_state`. The returned
113111 state represents the MKL stream state as a bytes object, which
114112 CANNOT be interpreted by NumPy's `RandomState`.
115-
116113 The `legacy` argument is included for compatibility with the
117114 original `RandomState`.
118115 """
@@ -126,12 +123,11 @@ def set_state(self, state):
126123
127124 For full documentation refer to `numpy.random.set_state`.
128125
129- .. note::
130- *Compatibility Notice*
131-
132- As this class uses MKL in the backend, the state of the generator
133- is NOT deterministic with states returned from the original
134- `numpy.random.get_state`.
126+ Notes
127+ -----
128+ As this class uses MKL in the backend, the state of the generator
129+ is NOT deterministic with states returned from the original
130+ `numpy.random.get_state`.
135131
136132 """
137133 return super ().set_state (state = state )
0 commit comments