mirror of
https://github.com/apachecn/ailearning.git
synced 2026-02-03 02:14:18 +08:00
Update 031.md
This commit is contained in:
@@ -858,7 +858,7 @@ array([[ 0, 1, 2, 3, 4, 5],
|
|||||||
In [51]:
|
In [51]:
|
||||||
|
|
||||||
```py
|
```py
|
||||||
condition = array([0,1,1,0,1],
|
condition = array([0,1,1,0,1,0],
|
||||||
dtype=bool)
|
dtype=bool)
|
||||||
a[condition]
|
a[condition]
|
||||||
|
|
||||||
@@ -1182,4 +1182,4 @@ Out[69]:
|
|||||||
```py
|
```py
|
||||||
(array([2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4], dtype=int64),
|
(array([2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4], dtype=int64),
|
||||||
array([3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4], dtype=int64))
|
array([3, 4, 0, 1, 2, 3, 4, 0, 1, 2, 3, 4], dtype=int64))
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user