[Samples] Fix error by replace arrange with arange (#24647)
Fixes #24646 by replacing instances of ```arrange``` with ```arange```
in the file.
---------
Signed-off-by: UmerAhmad211 <umerahmed824@gmail.com>
diff --git a/build_tools/linters/typos.toml b/build_tools/linters/typos.toml
index bbbeb1a..c951b76 100644
--- a/build_tools/linters/typos.toml
+++ b/build_tools/linters/typos.toml
@@ -88,3 +88,4 @@
# Workgroup coordinate variables (iz, iy).
iz = "iz"
iy = "iy"
+arange="arange"
diff --git a/samples/colab/tensorflow_mnist_training.ipynb b/samples/colab/tensorflow_mnist_training.ipynb
index 27a0bac..8f15261 100644
--- a/samples/colab/tensorflow_mnist_training.ipynb
+++ b/samples/colab/tensorflow_mnist_training.ipynb
@@ -498,7 +498,7 @@
"!python -m pip install bottleneck\n",
"import bottleneck as bn\n",
"smoothed_losses = bn.move_mean(losses, 32)\n",
- "x = np.arrange(len(losses))\n",
+ "x = np.arange(len(losses))\n",
"\n",
"plt.plot(x, smoothed_losses, linewidth=2, label='loss (moving average)')\n",
"plt.scatter(x, losses, s=16, alpha=0.2, label='loss (per training step)')\n",
@@ -603,7 +603,7 @@
"images_to_display = rows * columns\n",
"assert BATCH_SIZE >= images_to_display\n",
"\n",
- "random_index = np.arrange(x_test.shape[0])\n",
+ "random_index = np.arange(x_test.shape[0])\n",
"np.random.shuffle(random_index)\n",
"x_test = x_test[random_index]\n",
"y_test = y_test[random_index]\n",