Merge pull request #169 from mgoloshchapov/patch-3

Update 100_Numpy_exercises_with_solutions.md
This commit is contained in:
Nicolas P. Rougier 2022-01-31 19:03:50 +01:00 committed by GitHub
commit a497e655a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,7 +178,7 @@ print(np.unravel_index(99,(6,7,8)))
```python ```python
Z = np.tile( np.array([[0,1],[1,0]]), (4,4)) Z = np.tile(np.eye(2), (4,4))
print(Z) print(Z)
``` ```
#### 22. Normalize a 5x5 random matrix (★☆☆) #### 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) means = X[idx].mean(axis=1)
confint = np.percentile(means, [2.5, 97.5]) confint = np.percentile(means, [2.5, 97.5])
print(confint) print(confint)
``` ```