From 56b4edb871086aac34ce8d93556c957c9f8e4f6e Mon Sep 17 00:00:00 2001 From: udlbook <110402648+udlbook@users.noreply.github.com> Date: Sun, 24 Dec 2023 12:01:00 -0500 Subject: [PATCH] Created using Colaboratory --- Notebooks/Chap09/9_5_Augmentation.ipynb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Notebooks/Chap09/9_5_Augmentation.ipynb b/Notebooks/Chap09/9_5_Augmentation.ipynb index 6d32885..99a98c7 100644 --- a/Notebooks/Chap09/9_5_Augmentation.ipynb +++ b/Notebooks/Chap09/9_5_Augmentation.ipynb @@ -4,7 +4,7 @@ "metadata": { "colab": { "provenance": [], - "authorship_tag": "ABX9TyM3wq9CHLjekkIXIgXRxueE", + "authorship_tag": "ABX9TyM38ZVBK4/xaHk5Ys5lF6dN", "include_colab_link": true }, "kernelspec": { @@ -208,14 +208,14 @@ { "cell_type": "code", "source": [ - "def augment(data_in):\n", + "def augment(input_vector):\n", " # Create output vector\n", - " data_out = np.zeros_like(data_in)\n", + " data_out = np.zeros_like(input_vector)\n", "\n", " # TODO: Shift the input data by a random offset\n", " # (rotating, so points that would go off the end, are added back to the beginning)\n", " # Replace this line:\n", - " data_out = np.zeros_like(data_in) ;\n", + " data_out = np.zeros_like(input_vector) ;\n", "\n", " # TODO: # Randomly scale the data by a factor drawn from a uniform distribution over [0.8,1.2]\n", " # Replace this line:\n",