Update 100_Numpy_exercises_with_solutions.md
Replaced np.array([[0,1],[1,0]]) with np.eye(2) in Task #21
This commit is contained in:
parent
9802377336
commit
49e70fbc00
@ -178,7 +178,7 @@ print(np.unravel_index(99,(6,7,8)))
|
||||
|
||||
|
||||
```python
|
||||
Z = np.tile( np.array([[0,1],[1,0]]), (4,4))
|
||||
Z = np.tile(np.eye(2), (4,4))
|
||||
print(Z)
|
||||
```
|
||||
#### 22. Normalize a 5x5 random matrix (★☆☆)
|
||||
@ -1205,4 +1205,4 @@ idx = np.random.randint(0, X.size, (N, X.size))
|
||||
means = X[idx].mean(axis=1)
|
||||
confint = np.percentile(means, [2.5, 97.5])
|
||||
print(confint)
|
||||
```
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user