From 49e70fbc00ba8a71cbb4ac516a6cf2f28a48e916 Mon Sep 17 00:00:00 2001 From: Mikhail Goloshchapov <56315343+mgoloshchapov@users.noreply.github.com> Date: Sat, 29 Jan 2022 17:18:40 +0300 Subject: [PATCH] Update 100_Numpy_exercises_with_solutions.md Replaced np.array([[0,1],[1,0]]) with np.eye(2) in Task #21 --- 100_Numpy_exercises_with_solutions.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/100_Numpy_exercises_with_solutions.md b/100_Numpy_exercises_with_solutions.md index b332550..548bb76 100644 --- a/100_Numpy_exercises_with_solutions.md +++ b/100_Numpy_exercises_with_solutions.md @@ -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) -``` \ No newline at end of file +```