2021-04-20 07:49:45 +01:00
|
|
|
{
|
|
|
|
"cells": [
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2021-04-21 23:43:46 +01:00
|
|
|
"execution_count": 1,
|
2021-04-20 07:49:45 +01:00
|
|
|
"id": "3c568ab9",
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"import numpy as np\n",
|
|
|
|
"import matplotlib as mpl\n",
|
|
|
|
"from matplotlib import pyplot as plt"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"id": "7ecc547f",
|
|
|
|
"metadata": {},
|
|
|
|
"source": [
|
|
|
|
"# Rotations\n",
|
|
|
|
"\n",
|
|
|
|
"80/10/10 Split, 30 epochs\n",
|
|
|
|
"\n",
|
|
|
|
"Expansion Factor: 2\n",
|
|
|
|
"\n",
|
|
|
|
"## Index\n",
|
|
|
|
"0. degrees\n",
|
|
|
|
"1. top-1 accuracy\n",
|
|
|
|
"2. top-5 accuracy\n",
|
|
|
|
"3. last val loss\n",
|
|
|
|
"4. last val accuracy"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2021-04-21 23:43:46 +01:00
|
|
|
"execution_count": 2,
|
2021-04-20 07:49:45 +01:00
|
|
|
"id": "1b2471d2",
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"standard_res = [20.88, 48.24, 3.34, 25.25]\n",
|
|
|
|
"flipped_res = [44.84, 72.45, 2.84, 49.02]\n",
|
|
|
|
"\n",
|
2021-04-25 19:56:49 +01:00
|
|
|
"# default batch size\n",
|
2021-04-20 07:49:45 +01:00
|
|
|
"rot_results = np.array([\n",
|
|
|
|
" [1, 44.6, 71.34, 2.84, 48.71],\n",
|
|
|
|
" [5, 46.45, 73.5, 2.85, 47.61],\n",
|
|
|
|
" [10, 45.71, 72.64, 2.93, 45.89],\n",
|
|
|
|
" [20, 42.12, 70.41, 2.95, 40.99],\n",
|
|
|
|
" [30, 28.17, 56.52, 3.44, 30.58],\n",
|
|
|
|
" [40, 25.08, 51.33, 3.46, 28.37]\n",
|
|
|
|
"])\n",
|
|
|
|
"\n",
|
|
|
|
"rot_batch256_results = np.array([\n",
|
|
|
|
" [5, 32.43, 60.9, 3.35, 34.77]\n",
|
|
|
|
"])"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2021-04-21 23:43:46 +01:00
|
|
|
"execution_count": 4,
|
2021-04-20 07:49:45 +01:00
|
|
|
"id": "c664a31c",
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"output_type": "display_data",
|
|
|
|
"data": {
|
|
|
|
"text/plain": "<Figure size 432x288 with 1 Axes>",
|
2021-04-21 23:43:46 +01:00
|
|
|
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n<svg height=\"277.314375pt\" version=\"1.1\" viewBox=\"0 0 382.603125 277.314375\" width=\"382.603125pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <metadata>\n <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n <cc:Work>\n <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\n <dc:date>2021-04-20T07:39:58.933563</dc:date>\n <dc:format>image/svg+xml</dc:format>\n <dc:creator>\n <cc:Agent>\n <dc:title>Matplotlib v3.4.1, https://matplotlib.org/</dc:title>\n </cc:Agent>\n </dc:creator>\n </cc:Work>\n </rdf:RDF>\n </metadata>\n <defs>\n <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\n </defs>\n <g id=\"figure_1\">\n <g id=\"patch_1\">\n <path d=\"M 0 277.314375 \nL 382.603125 277.314375 \nL 382.603125 0 \nL 0 0 \nz\n\" style=\"fill:none;\"/>\n </g>\n <g id=\"axes_1\">\n <g id=\"patch_2\">\n <path d=\"M 40.603125 239.758125 \nL 375.403125 239.758125 \nL 375.403125 22.318125 \nL 40.603125 22.318125 \nz\n\" style=\"fill:#ffffff;\"/>\n </g>\n <g id=\"matplotlib.axis_1\">\n <g id=\"xtick_1\">\n <g id=\"line2d_1\">\n <path clip-path=\"url(#p848e045ebf)\" d=\"M 48.017111 239.758125 \nL 48.017111 22.318125 \n\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\n </g>\n <g id=\"line2d_2\">\n <defs>\n <path d=\"M 0 0 \nL 0 3.5 \n\" id=\"me022812289\" style=\"stroke:#000000;stroke-width:0.8;\"/>\n </defs>\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"48.017111\" xlink:href=\"#me022812289\" y=\"239.758125\"/>\n </g>\n </g>\n <g id=\"text_1\">\n <!-- 0 -->\n <g transform=\"translate(44.835861 254.356562)scale(0.1 -0.1)\">\n <defs>\n <path d=\"M 2034 4250 \nQ 1547 4250 1301 3770 \nQ 1056 3291 1056 2328 \nQ 1056 1369 1301 889 \nQ 1547 409 2034 409 \nQ 2525 409 2770 889 \nQ 3016 1369 3016 2328 \nQ 3016 3291 2770 3770 \nQ 2525 4250 2034 4250 \nz\nM 2034 4750 \nQ 2819 4750 3233 4129 \nQ 3647 3509 3647 2328 \nQ 3647 1150 3233 529 \nQ 2819 -91 2034 -91 \nQ 1250 -91 836 529 \nQ 422 1150 422 2328 \nQ 422 3509 836 4129 \nQ 1250 4750 2034 4750 \nz\n\" id=\"DejaVuSans-30\" transform=\"scale(0.015625)\"/>\n </defs>\n <use xlink:href=\"#DejaVuSans-30\"/>\n </g>\n </g>\n </g>\n <g id=\"xtick_2\">\n <g id=\"line2d_3\">\n <path clip-path=\"url(#p848e045ebf)\" d=\"M 87.03809 239.758125 \nL 87.03809 22.318125 \n\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\n </g>\n <g id=\"line2d_4\">\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"87.03809\" xlink:href=\"#me022812289\" y=\"239.758125\"/>\n </g>\n </g>\n <g id=\"text_2\">\n <!-- 5 -->\n <g transform=\"translate(83.85684 254.356562)scale(0.1 -0.1)\">\n <defs>\n <path d=\"M 691 4666 \nL 3169 4666 \nL 3169 4134 \nL 1269 4134 \nL 1269 2991 \nQ 1406 3038 1543 3061 \nQ 1681 3084 1819 3084 \nQ 2600 3084 3056 2656 \nQ 3513 2228 3513 1497 \nQ 3513 744 3044 326 \nQ 2575 -91 1722 -91 \nQ 1428 -91 1123 -41 \nQ 819 9 494 109 \nL 494 744 \nQ 775 591 1075 516 \nQ 1375 441 1709 441 \nQ 2250 441 2565 725 \nQ 2881 1009 2881 1497 \nQ 2881 1984 2565 2268 \nQ 2250 2553 1709 2553 \nQ 1456 2553 1204 2497 \nQ 953 2441 691 2322 \nL 691 4666 \nz\n\" id=\"DejaVuSans-35\" transform=\"scale(0.015625)\"/>\n </defs>\n <use xlink:href=\"#DejaVuSans-35\"/>\n </g>\n </g>\n </g>\n <g id=\"xtick_3\">\n <g id=\"line2d_5\">\n <path clip-path=\"url(#p848e045ebf)\" d=\"M 126.059069 239.758125 \nL 126.059069 22.318125 \n\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\n </g>\n <g id=\
|
2021-04-20 07:49:45 +01:00
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAX4AAAEWCAYAAABhffzLAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/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wECsRV+YxO8Y0rO++GujjdNBVrf1tr2M31t/0RuDXWvhq9UZxw5RSDYaILAA+M8a85+5YlOvZZ1AZWFWDO90czhlBj/hVgyIi52IduX1+qnlVwyUiV4pIgN1uMQHrbHOXe6M6c2jiVw2GiHwIzMO65j/T3fEol7oaq8F8H9YFCTcYrZ6oNVrVo5RSjYwe8SulVCPTIG7gioqKMnFxcRVOO378OIGB9bMfJo2tZjS2mtHYauZMjm316tWHjTFl76tpGF029OjRw1Rm4cKFlU5zN42tZjS2mtHYauZMjg1YZSrIqVrVo5RSjYwmfqWUamQ08de2pRNh55LS43YuscYrpVQ9oIm/tjXvDtNvKUn+O5dYw827uzMqpZRyaBBX9TQocRfCJS9C0mi6BLSFZdugzwPWtNT14BdqvXxDwUPLXaVU3dPEfzqMgfSdVkLftw5S11mfT1jdfEfkrrPmW1RRx34CviElBYHzyz+s4vF+oeBnT/MJqn7BsXSideYR369k3M4lsHcN9H2oml9eKdVQaeKvqqIiK8nvW2sl9+Ikn2M/k8HDG2LOhrOuAu8AWP8Zf0YNpFXaYhjyNES2teY9kWG9V/TK2F3yOffYyeMRj/IFh6PACKu4wAiIhGk3w/B3wPiUVEONnOLCHaeUqm808VekqAiObC99FJ+6viQZe/pAzDlwzjXQrCvEJkL02eD
|
|
|
|
},
|
|
|
|
"metadata": {
|
|
|
|
"needs_background": "light"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"plt.plot(rot_results[:, 0], rot_results[:, 1], 'x-', label=\"Top-1 Accuracy\")\n",
|
|
|
|
"plt.plot(rot_results[:, 0], rot_results[:, 2], 'x-', label=\"Top-5 Accuracy\")\n",
|
|
|
|
"plt.plot(rot_results[:, 0], rot_results[:, 4], 'x-', label=\"Final Val. Accuracy\")\n",
|
|
|
|
"\n",
|
|
|
|
"plt.ylim(0)\n",
|
|
|
|
"\n",
|
|
|
|
"plt.title('Model Accuracy for Rotated Training Data')\n",
|
|
|
|
"plt.ylabel('% Accuracy')\n",
|
|
|
|
"plt.xlabel('Degrees Rotation')\n",
|
|
|
|
"\n",
|
|
|
|
"plt.legend()\n",
|
|
|
|
"plt.grid()\n",
|
|
|
|
"plt.show()"
|
|
|
|
]
|
|
|
|
},
|
2021-04-25 19:56:49 +01:00
|
|
|
{
|
|
|
|
"source": [
|
|
|
|
"# All\n",
|
|
|
|
"\n",
|
|
|
|
"Flip, rotate both ways, flip both rotations\n",
|
|
|
|
"\n",
|
|
|
|
"Expansion Factor: 6\n",
|
|
|
|
"\n",
|
|
|
|
"## Index\n",
|
|
|
|
"0. degrees\n",
|
|
|
|
"1. top-1 accuracy\n",
|
|
|
|
"2. top-5 accuracy\n",
|
|
|
|
"3. last val loss\n",
|
|
|
|
"4. last val accuracy"
|
|
|
|
],
|
|
|
|
"cell_type": "markdown",
|
|
|
|
"metadata": {}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 3,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": [
|
|
|
|
"all_results = np.array([\n",
|
|
|
|
" [5, 53.24, 79.49, 2.69, 55.64]\n",
|
|
|
|
"])"
|
|
|
|
]
|
|
|
|
},
|
2021-04-20 07:49:45 +01:00
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2021-04-21 23:43:46 +01:00
|
|
|
"execution_count": 5,
|
2021-04-20 07:49:45 +01:00
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"output_type": "display_data",
|
|
|
|
"data": {
|
|
|
|
"text/plain": "<Figure size 432x288 with 1 Axes>",
|
2021-04-21 23:43:46 +01:00
|
|
|
"image/svg+xml": "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"no\"?>\n<!DOCTYPE svg PUBLIC \"-//W3C//DTD SVG 1.1//EN\"\n \"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd\">\n<svg height=\"277.314375pt\" version=\"1.1\" viewBox=\"0 0 467.901562 277.314375\" width=\"467.901562pt\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <metadata>\n <rdf:RDF xmlns:cc=\"http://creativecommons.org/ns#\" xmlns:dc=\"http://purl.org/dc/elements/1.1/\" xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\n <cc:Work>\n <dc:type rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\"/>\n <dc:date>2021-04-20T07:39:59.201174</dc:date>\n <dc:format>image/svg+xml</dc:format>\n <dc:creator>\n <cc:Agent>\n <dc:title>Matplotlib v3.4.1, https://matplotlib.org/</dc:title>\n </cc:Agent>\n </dc:creator>\n </cc:Work>\n </rdf:RDF>\n </metadata>\n <defs>\n <style type=\"text/css\">*{stroke-linecap:butt;stroke-linejoin:round;}</style>\n </defs>\n <g id=\"figure_1\">\n <g id=\"patch_1\">\n <path d=\"M 0 277.314375 \nL 467.901562 277.314375 \nL 467.901562 0 \nL 0 0 \nz\n\" style=\"fill:none;\"/>\n </g>\n <g id=\"axes_1\">\n <g id=\"patch_2\">\n <path d=\"M 125.901562 239.758125 \nL 460.701563 239.758125 \nL 460.701563 22.318125 \nL 125.901562 22.318125 \nz\n\" style=\"fill:#ffffff;\"/>\n </g>\n <g id=\"patch_3\">\n <path clip-path=\"url(#p39e9ddc24f)\" d=\"M 125.901562 229.874489 \nL 339.462442 229.874489 \nL 339.462442 188.259178 \nL 125.901562 188.259178 \nz\n\" style=\"fill:#1f77b4;\"/>\n </g>\n <g id=\"patch_4\">\n <path clip-path=\"url(#p39e9ddc24f)\" d=\"M 125.901562 177.85535 \nL 312.225808 177.85535 \nL 312.225808 136.240039 \nL 125.901562 136.240039 \nz\n\" style=\"fill:#1f77b4;\"/>\n </g>\n <g id=\"patch_5\">\n <path clip-path=\"url(#p39e9ddc24f)\" d=\"M 125.901562 125.836211 \nL 305.767637 125.836211 \nL 305.767637 84.2209 \nL 125.901562 84.2209 \nz\n\" style=\"fill:#1f77b4;\"/>\n </g>\n <g id=\"patch_6\">\n <path clip-path=\"url(#p39e9ddc24f)\" d=\"M 125.901562 73.817072 \nL 209.657219 73.817072 \nL 209.657219 32.201761 \nL 125.901562 32.201761 \nz\n\" style=\"fill:#1f77b4;\"/>\n </g>\n <g id=\"patch_7\">\n <path clip-path=\"url(#p39e9ddc24f)\" d=\"M 339.462442 229.874489 \nL 444.758705 229.874489 \nL 444.758705 188.259178 \nL 339.462442 188.259178 \nz\n\" style=\"fill:#ff7f0e;\"/>\n </g>\n <g id=\"patch_8\">\n <path clip-path=\"url(#p39e9ddc24f)\" d=\"M 312.225808 177.85535 \nL 420.731101 177.85535 \nL 420.731101 136.240039 \nL 312.225808 136.240039 \nz\n\" style=\"fill:#ff7f0e;\"/>\n </g>\n <g id=\"patch_9\">\n <path clip-path=\"url(#p39e9ddc24f)\" d=\"M 305.767637 125.836211 \nL 416.51925 125.836211 \nL 416.51925 84.2209 \nL 305.767637 84.2209 \nz\n\" style=\"fill:#ff7f0e;\"/>\n </g>\n <g id=\"patch_10\">\n <path clip-path=\"url(#p39e9ddc24f)\" d=\"M 209.657219 73.817072 \nL 319.40601 73.817072 \nL 319.40601 32.201761 \nL 209.657219 32.201761 \nz\n\" style=\"fill:#ff7f0e;\"/>\n </g>\n <g id=\"matplotlib.axis_1\">\n <g id=\"xtick_1\">\n <g id=\"line2d_1\">\n <path clip-path=\"url(#p39e9ddc24f)\" d=\"M 125.901562 239.758125 \nL 125.901562 22.318125 \n\" style=\"fill:none;stroke:#b0b0b0;stroke-linecap:square;stroke-width:0.8;\"/>\n </g>\n <g id=\"line2d_2\">\n <defs>\n <path d=\"M 0 0 \nL 0 3.5 \n\" id=\"m9646f3a016\" style=\"stroke:#000000;stroke-width:0.8;\"/>\n </defs>\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"125.901562\" xlink:href=\"#m9646f3a016\" y=\"239.758125\"/>\n </g>\n </g>\n <g id=\"text_1\">\n <!-- 0 -->\n <g transform=\"translate(122.720312 254.356562)scale(0.1 -0.1)\">\n <defs>\n <path d=\"M 2034 4250 \nQ 1547 4250 1301 3770 \nQ 1056 3291 1056 2328 \nQ 1056 1369 1301 889 \nQ 1547 409 2034 409 \nQ 2525 409 2770 889 \nQ 3016 1369 3016 2328 \nQ 3016 3291 2770 3770 \nQ 2525 4250 2034 4250 \nz\nM 2034 4750 \nQ 2819 4750 3233 4129 \nQ 3647 3509 3647 2328 \nQ 3647 1150 32
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAdMAAAEWCAYAAAA9232qAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAAsTAAALEwEAmpwYAABC7klEQVR4nO3debxVVf3/8ddbREFBcCA1UXEuE8V5SBPN1BxSU78EpmIOlZmzZt+0sPKXZmlRpqUpjkR9FTMzh8yraCqCgqA4pag4oFIgoBDD5/fHWkc2x3vuPZdzR+77+Xicx91n7emzzzn3rLPW3vuzFBGYmZnZsluhrQMwMzPr6FyZmpmZ1ciVqZmZWY1cmZqZmdXIlamZmVmNXJmamZnVyJWpmbUYSVtImiBptqRT2zoea16SjpJ0b1vH0R64MrV2Q9JUSR9KmiPpP5L+Kmn9ZtruPhXmHZX3Nyfve3Hh+Zxl2Fc/SSFpxSqWHZqXHdTU/XQg5wIPRETPiBhe68YkDZO0IFfOsyW9IOnXktZtwjbqJJ3QTLGEpJ1r3VZbyJ+/h5uw/Mc+2xFxc0Ts2zIRdiyuTK29OTgiegDrAtOBX7XkzvKXQY+8zy8Cb5ae57KWdCzwb+CYFt7PUqqp6JvRhsAzy7JiA3GOioiewBrAYcA6wPimVKi1kiTS+9bq75+1UxHhhx/t4gFMBfYpPD8AeKHwfGXgZ8BrpIr2KqB7nrcWcCcwk/QFN4b0Y/FGYDHwITAHOLeB/Q8EphWefxK4FXgXeAU4tTBv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19xiX1/jGjx//XkR8LEGHK9NOau2112bcuHFtHUZFdXV1DBw4sK3DqMj
|
2021-04-20 07:49:45 +01:00
|
|
|
},
|
|
|
|
"metadata": {
|
|
|
|
"needs_background": "light"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"best_results = [standard_res, flipped_res]\n",
|
|
|
|
"best_labels = ['Unaugmented\\nExpansion Factor: 1', 'Flipped\\nExpansion Factor: 2']\n",
|
|
|
|
"\n",
|
|
|
|
"# Clockwise Rotation\n",
|
|
|
|
"b_clock = rot_results[np.argmax(rot_results[:, 1])]\n",
|
|
|
|
"best_results.append(b_clock[1:])\n",
|
|
|
|
"best_labels.append(f'Clockwise Rotation\\n{b_clock[0]} Degrees\\nExpansion Factor: 2')\n",
|
|
|
|
"\n",
|
|
|
|
"best_results.append(all_results[0, 1:])\n",
|
|
|
|
"best_labels.append(f'All Transforms\\n{all_results[0, 0]} Degrees\\nExpansion Factor: 6')\n",
|
|
|
|
"\n",
|
|
|
|
"best_results = best_results[::-1]\n",
|
|
|
|
"best_labels = best_labels[::-1]\n",
|
|
|
|
"\n",
|
|
|
|
"plt.barh(range(len(best_labels)), [i[0] for i in best_results], tick_label=best_labels, label='Top-1')\n",
|
|
|
|
"plt.barh(range(len(best_labels)), [i[1] - i[0] for i in best_results], tick_label=best_labels, label='Top-5', left=[i[0] for i in best_results])\n",
|
|
|
|
"\n",
|
|
|
|
"plt.legend()\n",
|
|
|
|
"plt.grid(axis='x')\n",
|
|
|
|
"plt.title('Best Test Accuracy for Data Augmentations')\n",
|
|
|
|
"plt.xlabel('% Test Accuracy')\n",
|
|
|
|
"plt.ylabel('Data Augmentation Methods')\n",
|
|
|
|
"plt.show()"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": null,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"metadata": {
|
|
|
|
"kernelspec": {
|
|
|
|
"name": "pythonjvsc74a57bd0333605e348ea7c6bf4ca805dbc845da062650cb5bf1d8f33f5f4a9d3bca7d68b",
|
|
|
|
"display_name": "Python 3.9.3 ('.venv': venv)"
|
|
|
|
},
|
|
|
|
"language_info": {
|
|
|
|
"codemirror_mode": {
|
|
|
|
"name": "ipython",
|
|
|
|
"version": 3
|
|
|
|
},
|
|
|
|
"file_extension": ".py",
|
|
|
|
"mimetype": "text/x-python",
|
|
|
|
"name": "python",
|
|
|
|
"nbconvert_exporter": "python",
|
|
|
|
"pygments_lexer": "ipython3",
|
|
|
|
"version": "3.9.3"
|
|
|
|
},
|
|
|
|
"metadata": {
|
|
|
|
"interpreter": {
|
|
|
|
"hash": "333605e348ea7c6bf4ca805dbc845da062650cb5bf1d8f33f5f4a9d3bca7d68b"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"nbformat": 4,
|
|
|
|
"nbformat_minor": 5
|
|
|
|
}
|