Skip to content

Commit 0b11a19

Browse files
minor format fixes in cls2
1 parent f9e3044 commit 0b11a19

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/classification2.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -395,20 +395,20 @@ the `random_state` argument that is available in many `pandas` and `scikit-learn
395395
functions. Those functions will then use your `Generator` to generate random numbers instead of
396396
`numpy`'s default generator. For example, we can reproduce our earlier example by using a `Generator`
397397
object with the `seed` value set to 1; we get the same lists of numbers once again.
398-
```{code}
398+
```python
399399
from numpy.random import Generator, PCG64
400400
rng = Generator(PCG64(seed=1))
401401
random_numbers1_third = nums_0_to_9.sample(n=10, random_state=rng).to_list()
402402
random_numbers1_third
403403
```
404-
```{code}
404+
```text
405405
array([2, 9, 6, 4, 0, 3, 1, 7, 8, 5])
406406
```
407-
```{code}
407+
```python
408408
random_numbers2_third = nums_0_to_9.sample(n=10, random_state=rng).to_list()
409409
random_numbers2_third
410410
```
411-
```{code}
411+
```text
412412
array([9, 5, 3, 0, 8, 4, 2, 1, 6, 7])
413413
```
414414

0 commit comments

Comments
 (0)