Created using Colaboratory

This commit is contained in:
udlbook
2023-12-24 12:01:00 -05:00
parent 86387e2901
commit 56b4edb871

View File

@@ -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",