From fbad6e2d96f294192514a73945fa3dc64e1adc7b Mon Sep 17 00:00:00 2001 From: Mehgan-E <157180722+Mehgan-E@users.noreply.github.com> Date: Mon, 10 Mar 2025 20:56:14 +0000 Subject: [PATCH] Update numpy_ultraquick_tutorial.ipynb Updated Double-click to see a possible solution to Task 2 to noise = (np.random.random[14] * 4) - 2 removes error "operands could not be broadcast together with shapes (14,) (15,)" when running code --- ml/cc/exercises/numpy_ultraquick_tutorial.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ml/cc/exercises/numpy_ultraquick_tutorial.ipynb b/ml/cc/exercises/numpy_ultraquick_tutorial.ipynb index 8335364..ac5273b 100644 --- a/ml/cc/exercises/numpy_ultraquick_tutorial.ipynb +++ b/ml/cc/exercises/numpy_ultraquick_tutorial.ipynb @@ -346,7 +346,7 @@ "source": [ "#@title Double-click to see a possible solution to Task 2.\n", "\n", - "noise = (np.random.random([15]) * 4) - 2\n", + "noise = (np.random.random([14]) * 4) - 2\n", "print(noise)\n", "label = label + noise \n", "print(label)"