DIGITS-CNN/cars/lr-investigations/lr.ipynb

682 lines
1.1 MiB
Plaintext
Raw Normal View History

{
"cells": [
{
"cell_type": "code",
2021-04-29 00:53:46 +01:00
"execution_count": 133,
2021-04-10 12:20:26 +01:00
"id": "3c568ab9",
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import matplotlib as mpl\n",
"from matplotlib import pyplot as plt\n",
"\n",
"fig_dpi = 200\n",
"lw = 3"
]
},
{
"cell_type": "markdown",
2021-04-10 12:20:26 +01:00
"id": "7ecc547f",
"metadata": {},
"source": [
"# Fixed Learning Rate\n",
2021-04-09 13:04:40 +01:00
"80/10/10 Split, 100/200 epochs\n",
"\n",
"## Index\n",
"0. learning rate\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-29 00:53:46 +01:00
"execution_count": 134,
2021-04-10 12:20:26 +01:00
"id": "1b2471d2",
"metadata": {},
"outputs": [],
"source": [
2021-04-09 13:04:40 +01:00
"fixed_results_200e = np.array([\n",
" [1e-6, 0.31, 2.84, 5.28, 0.67],\n",
" [1e-5, 0.8, 2.59, 5.28, 0.55],\n",
" [1e-4, 6.98, 17.23, 4.6, 7.41],\n",
" [1e-3, 21.56, 44.72, 4.97, 26.9],\n",
" [5e-3, 39.35, 66.83, 3.34, 43.5],\n",
" [1e-2, 13.65, 30.02, 4.15, 17.46],\n",
" [5e-2, 1.79, 6.73, 5.13, 1.78],\n",
" [1e-1, 0.8, 2.78, 5.29, 0.55]\n",
2021-04-09 13:04:40 +01:00
"])\n",
"\n",
"fixed_results_100e = np.array([\n",
" [1e-6, 0.31, 2.9, 5.28, 0.67],\n",
" [1e-5, 0.8, 2.1, 5.28, 0.55],\n",
" [1e-4, 2.35, 8.28, 5.00, 2.63],\n",
" [1e-3, 18.47, 40.09, 4.55, 23.41],\n",
" [5e-3, 35.52, 63.19, 3.33, 40.93],\n",
" [1e-2, 22.42, 47.19, 3.59, 27.02],\n",
" [5e-2, 2.47, 9.02, 5.07, 2.14],\n",
" [1e-1, 0.8, 2.53, 5.28, 0.55]\n",
"])"
]
},
2021-04-10 12:20:26 +01:00
{
"cell_type": "markdown",
"id": "ca34155e",
"metadata": {},
"source": [
"## 100 Epochs"
]
},
{
"cell_type": "code",
2021-04-29 00:53:46 +01:00
"execution_count": 135,
2021-04-10 12:20:26 +01:00
"id": "c664a31c",
"metadata": {},
"outputs": [
{
"output_type": "display_data",
2021-04-10 12:20:26 +01:00
"data": {
"text/plain": "<Figure size 1000x800 with 1 Axes>",
2021-04-29 00:53: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=\"279.070375pt\" version=\"1.1\" viewBox=\"0 0 352.343125 279.070375\" width=\"352.343125pt\" 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-29T00:45:10.511514</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 279.070375 \nL 352.343125 279.070375 \nL 352.343125 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 241.514125 \nL 345.143125 241.514125 \nL 345.143125 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(#p4bb15414f4)\" d=\"M 54.445852 241.514125 \nL 54.445852 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=\"m95d6b17092\" style=\"stroke:#000000;stroke-width:0.8;\"/>\n </defs>\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"54.445852\" xlink:href=\"#m95d6b17092\" y=\"241.514125\"/>\n </g>\n </g>\n <g id=\"text_1\">\n <!-- $\\mathdefault{10^{-6}}$ -->\n <g transform=\"translate(42.695852 256.112563)scale(0.1 -0.1)\">\n <defs>\n <path d=\"M 794 531 \nL 1825 531 \nL 1825 4091 \nL 703 3866 \nL 703 4441 \nL 1819 4666 \nL 2450 4666 \nL 2450 531 \nL 3481 531 \nL 3481 0 \nL 794 0 \nL 794 531 \nz\n\" id=\"DejaVuSans-31\" transform=\"scale(0.015625)\"/>\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 <path d=\"M 678 2272 \nL 4684 2272 \nL 4684 1741 \nL 678 1741 \nL 678 2272 \nz\n\" id=\"DejaVuSans-2212\" transform=\"scale(0.015625)\"/>\n <path d=\"M 2113 2584 \nQ 1688 2584 1439 2293 \nQ 1191 2003 1191 1497 \nQ 1191 994 1439 701 \nQ 1688 409 2113 409 \nQ 2538 409 2786 701 \nQ 3034 994 3034 1497 \nQ 3034 2003 2786 2293 \nQ 2538 2584 2113 2584 \nz\nM 3366 4563 \nL 3366 3988 \nQ 3128 4100 2886 4159 \nQ 2644 4219 2406 4219 \nQ 1781 4219 1451 3797 \nQ 1122 3375 1075 2522 \nQ 1259 2794 1537 2939 \nQ 1816 3084 2150 3084 \nQ 2853 3084 3261 2657 \nQ 3669 2231 3669 1497 \nQ 3669 778 3244 343 \nQ 2819 -91 2113 -91 \nQ 1303 -91 875 529 \nQ 447 1150 447 2328 \nQ 447 3434 972 4092 \nQ 1497 4750 2381 4750 \nQ 2619 4750 2861 4703 \nQ 3103 4656 3366 4563 \nz\n\" id=\"DejaVuSans-36\" transform=\"scale(0.015625)\"/>\n </defs>\n <use transform=\"translate(0 0.765625)\" xlink:href=\"#DejaVuSans-31\"/>\n <use transform=\"translate(63.623047 0.765625)\" xlink:href=\"#DejaVuSans-30\"/>\n <use transform=\"translate(128.203125 39.046875)scale(0.7)\" xlink:href=\"#DejaVuSans-2212\"/>\n <use transform=\"translate(186.855469 39.046875)scale(0.7)\" xlink:href=\"#DejaVuSans-36\"/>\n </g>\n </g>\n </g>\n <g id=\"xti
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA9QAAAMMCAYAAACyue/GAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAB7CAAAewgFu0HU+AAEAAElEQVR4nOzdd3wU1frH8c9JIUBCLyJNEPFSRKUqKk2wooIKKgqCir2h13tteI16VWw/VCzXgiCIFJVmR7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bTuFzO1lHntOBjgHauxR4CDgpyDYbA1+5tvtumPvKMc/fuf72O+8+TfYj1N6cfwCa5Yg3OEWUe3/uHCQXX1yYr0saniOr5P4sbUn2o7PvBWnzphw5vkjuz+Lanv3a/ZgtRXOE2n10dkmQuHLAe57XK9DnWQLwL9drvw9ICvP5z7WPBFjnRtc6B3B6LPn739wtx2vm7399L9fyHQT4/+XaB4YBHQr6GumiS2FcijwBXXTRpXhccI46e/+Z/QXE5Vh+Atm7W7cK0Z67CF4S7B95iHbcXYqPEkZ30gDtNHK1synMdUJ+wcgRk6twKYTX5QxX2xOj8Hy7u3f+N0TsS67YgF9q87DtQeF++QRuyLFftA4S2971pdIC1weIm5vjtXy0kF/LRjnafx94LcTloQI8Rw+5Yve792FgqmvZz0D5AG085oqbDMSE2OZoV/yDfpafTPbPkYFB2joZZ9Rj93PWtRBeB/d7dlA+23CfHvMbobs8u1+3LwuYfzzwk6etVKBaGNv0vs4VQrTdNcc66whehH3
2021-04-10 12:20:26 +01:00
},
"metadata": {
"needs_background": "light"
}
2021-04-10 12:20:26 +01:00
}
],
"source": [
"fig = plt.figure(figsize=(5, 4))\n",
"fig.set_dpi(fig_dpi)\n",
"\n",
"plt.plot(fixed_results_100e[:, 0], fixed_results_100e[:, 1], 'x-', label=\"Top-1 Accuracy\", lw=lw)\n",
"plt.plot(fixed_results_100e[:, 0], fixed_results_100e[:, 2], 'x-', label=\"Top-5 Accuracy\", lw=lw)\n",
"plt.plot(fixed_results_100e[:, 0], fixed_results_100e[:, 4], 'x-', label=\"Final Val. Accuracy\", lw=lw)\n",
2021-04-10 12:20:26 +01:00
"\n",
2021-04-29 00:53:46 +01:00
"plt.ylim(0, 70)\n",
2021-04-10 12:20:26 +01:00
"\n",
"plt.title('Accuracy for Fixed Learning Rates')\n",
2021-04-10 12:20:26 +01:00
"plt.ylabel('% Accuracy')\n",
"plt.xlabel('Learning Rate')\n",
"\n",
"plt.legend()\n",
"plt.xscale('log')\n",
"plt.grid()\n",
"\n",
"plt.tight_layout()\n",
"plt.savefig('fixed-accuracy.png')\n",
"\n",
2021-04-10 12:20:26 +01:00
"plt.show()"
]
},
{
"cell_type": "code",
2021-04-29 00:53:46 +01:00
"execution_count": 136,
2021-04-10 12:20:26 +01:00
"id": "bf5fa35b",
"metadata": {},
"outputs": [
{
"output_type": "display_data",
2021-04-10 12:20:26 +01:00
"data": {
"text/plain": "<Figure size 1000x800 with 1 Axes>",
2021-04-29 00:53: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=\"279.070375pt\" version=\"1.1\" viewBox=\"0 0 352.34375 279.070375\" width=\"352.34375pt\" 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-29T00:45:11.499327</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 279.070375 \nL 352.34375 279.070375 \nL 352.34375 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 50.14375 241.514125 \nL 345.14375 241.514125 \nL 345.14375 22.318125 \nL 50.14375 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(#pc15bb7bf6a)\" d=\"M 63.552841 241.514125 \nL 63.552841 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=\"m37841ef353\" style=\"stroke:#000000;stroke-width:0.8;\"/>\n </defs>\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"63.552841\" xlink:href=\"#m37841ef353\" y=\"241.514125\"/>\n </g>\n </g>\n <g id=\"text_1\">\n <!-- $\\mathdefault{10^{-6}}$ -->\n <g transform=\"translate(51.802841 256.112563)scale(0.1 -0.1)\">\n <defs>\n <path d=\"M 794 531 \nL 1825 531 \nL 1825 4091 \nL 703 3866 \nL 703 4441 \nL 1819 4666 \nL 2450 4666 \nL 2450 531 \nL 3481 531 \nL 3481 0 \nL 794 0 \nL 794 531 \nz\n\" id=\"DejaVuSans-31\" transform=\"scale(0.015625)\"/>\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 <path d=\"M 678 2272 \nL 4684 2272 \nL 4684 1741 \nL 678 1741 \nL 678 2272 \nz\n\" id=\"DejaVuSans-2212\" transform=\"scale(0.015625)\"/>\n <path d=\"M 2113 2584 \nQ 1688 2584 1439 2293 \nQ 1191 2003 1191 1497 \nQ 1191 994 1439 701 \nQ 1688 409 2113 409 \nQ 2538 409 2786 701 \nQ 3034 994 3034 1497 \nQ 3034 2003 2786 2293 \nQ 2538 2584 2113 2584 \nz\nM 3366 4563 \nL 3366 3988 \nQ 3128 4100 2886 4159 \nQ 2644 4219 2406 4219 \nQ 1781 4219 1451 3797 \nQ 1122 3375 1075 2522 \nQ 1259 2794 1537 2939 \nQ 1816 3084 2150 3084 \nQ 2853 3084 3261 2657 \nQ 3669 2231 3669 1497 \nQ 3669 778 3244 343 \nQ 2819 -91 2113 -91 \nQ 1303 -91 875 529 \nQ 447 1150 447 2328 \nQ 447 3434 972 4092 \nQ 1497 4750 2381 4750 \nQ 2619 4750 2861 4703 \nQ 3103 4656 3366 4563 \nz\n\" id=\"DejaVuSans-36\" transform=\"scale(0.015625)\"/>\n </defs>\n <use transform=\"translate(0 0.765625)\" xlink:href=\"#DejaVuSans-31\"/>\n <use transform=\"translate(63.623047 0.765625)\" xlink:href=\"#DejaVuSans-30\"/>\n <use transform=\"translate(128.203125 39.046875)scale(0.7)\" xlink:href=\"#DejaVuSans-2212\"/>\n <use transform=\"translate(186.855469 39.046875)scale(0.7)\" xlink:href=\"#DejaVuSans-36\"/>\n </g>\n </g>\n </g>\n <g id=\"xtick_2\">\
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA9QAAAMMCAYAAACyue/GAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAB7CAAAewgFu0HU+AADIhElEQVR4nOzdd5xcVf3/8fdnN2U3vWwqSUgjJPSSkNBCQkJRUbHQLVFRAeWr2LB9f8avfvULqFhALKigAlZQQaQFQmgJCb2kF1KAJJtedpMt5/fHvUPuLjP33pmdPq/n4zGPndk5c+bMzJ2Z+5l7z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ws5dc9rJSd5L0d3nfRfvl/bC3Ut62dqoOPE9nS/qRpMtTdWTejIt71PazdaG857eLpBMkHSJptpnVZ2n8GTGzzvJe34RU24nkvW6J79FV8ioBbJb3g3IfeZ/vh/vXny7pITOb4pzb166fh+R9bo6X93xLqSsQLE8y5gl+22DFlWflfV42yNtWpsr7XB8q6UEze4dz7pEkfZ2rA59bkvd5/5S8fddmeT+yjJO3XVZOve5CR/ScOGXrpMIcoW6U9yH3IUnWrt3havuL8W9D+ny3vLquY0PajJJ0X6C/m0PaTgu0m5ul5/ffgT7/HqP90kD7/0ty/c8lvVMpfrmW9yU0y39+nbwv7JRH5pWlI9TygrmNgXYvSprQrk2VpK/I2xnbF2i7JmR835e3s9QrxfXmbwebAv2dEtLfLYF2s2K+hpG3kRfE7Qq0W9B+u/Qf/xfkBdqJdj+N877y3zObJJ2
2021-04-10 12:20:26 +01:00
},
"metadata": {
"needs_background": "light"
}
2021-04-10 12:20:26 +01:00
}
],
"source": [
"fig = plt.figure(figsize=(5, 4))\n",
"fig.set_dpi(fig_dpi)\n",
"\n",
"plt.plot(fixed_results_100e[:, 0], fixed_results_100e[:, 3], 'x-', label=\"Final Validation Loss\", lw=lw)\n",
2021-04-10 12:20:26 +01:00
"\n",
"# plt.ylim(0)\n",
"\n",
"plt.title('Final Validation Loss for Fixed Learning Rates')\n",
"plt.ylabel('Loss')\n",
"plt.xlabel('Learning Rate')\n",
"\n",
"# plt.legend()\n",
"plt.xscale('log')\n",
"plt.grid()\n",
"\n",
"plt.tight_layout()\n",
"plt.savefig('fixed-loss.png')\n",
"\n",
2021-04-10 12:20:26 +01:00
"plt.show()"
]
},
{
"cell_type": "markdown",
"id": "ff7746a4",
"metadata": {},
"source": [
"## 200 Epochs"
]
},
{
"cell_type": "code",
2021-04-29 00:53:46 +01:00
"execution_count": 137,
2021-04-10 12:20:26 +01:00
"id": "9f4a799f",
"metadata": {},
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": "<Figure size 432x288 with 1 Axes>",
2021-04-29 00:53: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-29T00:45:12.366115</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(#p1f771bab48)\" d=\"M 55.821307 239.758125 \nL 55.821307 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=\"m8fe4eb08f1\" style=\"stroke:#000000;stroke-width:0.8;\"/>\n </defs>\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"55.821307\" xlink:href=\"#m8fe4eb08f1\" y=\"239.758125\"/>\n </g>\n </g>\n <g id=\"text_1\">\n <!-- $\\mathdefault{10^{-6}}$ -->\n <g transform=\"translate(44.071307 254.356562)scale(0.1 -0.1)\">\n <defs>\n <path d=\"M 794 531 \nL 1825 531 \nL 1825 4091 \nL 703 3866 \nL 703 4441 \nL 1819 4666 \nL 2450 4666 \nL 2450 531 \nL 3481 531 \nL 3481 0 \nL 794 0 \nL 794 531 \nz\n\" id=\"DejaVuSans-31\" transform=\"scale(0.015625)\"/>\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 <path d=\"M 678 2272 \nL 4684 2272 \nL 4684 1741 \nL 678 1741 \nL 678 2272 \nz\n\" id=\"DejaVuSans-2212\" transform=\"scale(0.015625)\"/>\n <path d=\"M 2113 2584 \nQ 1688 2584 1439 2293 \nQ 1191 2003 1191 1497 \nQ 1191 994 1439 701 \nQ 1688 409 2113 409 \nQ 2538 409 2786 701 \nQ 3034 994 3034 1497 \nQ 3034 2003 2786 2293 \nQ 2538 2584 2113 2584 \nz\nM 3366 4563 \nL 3366 3988 \nQ 3128 4100 2886 4159 \nQ 2644 4219 2406 4219 \nQ 1781 4219 1451 3797 \nQ 1122 3375 1075 2522 \nQ 1259 2794 1537 2939 \nQ 1816 3084 2150 3084 \nQ 2853 3084 3261 2657 \nQ 3669 2231 3669 1497 \nQ 3669 778 3244 343 \nQ 2819 -91 2113 -91 \nQ 1303 -91 875 529 \nQ 447 1150 447 2328 \nQ 447 3434 972 4092 \nQ 1497 4750 2381 4750 \nQ 2619 4750 2861 4703 \nQ 3103 4656 3366 4563 \nz\n\" id=\"DejaVuSans-36\" transform=\"scale(0.015625)\"/>\n </defs>\n <use transform=\"translate(0 0.765625)\" xlink:href=\"#DejaVuSans-31\"/>\n <use transform=\"translate(63.623047 0.765625)\" xlink:href=\"#DejaVuSans-30\"/>\n <use transform=\"translate(128.203125 39.046875)scale(0.7)\" xlink:href=\"#DejaVuSans-2212\"/>\n <use transform=\"translate(186.855469 39.046875)scale(0.7)\" xlink:href=\"#DejaVuSans-36\"/>\n </g>\n </g>\n </g>\n <g id=\"xti
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAX4AAAEaCAYAAAAWvzywAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAAsTAAALEwEAmpwYAABk10lEQVR4nO2dZ3hURReA35NGAgkkkFADSehCIAmh9y6gIoqIgAX0E0UFFLGiiB0VFEEFG0VFwK4gqLTQpYTea0IvCYEkQNrufD/uJgZI2ZTdTZn3ee6ze+dOOXN399zZM2fOiFIKjUaj0ZQenBwtgEaj0Wjsi1b8Go1GU8rQil+j0WhKGVrxazQaTSlDK36NRqMpZWjFr9FoNKUMrfg1RRIRGSEi50QkUUQq2bCdRBGpXch1dhaRk4VZZ2EjIkNE5B9Hy6FxDFrxF0NEJEJE4kSkjKNlsQUi4gp8CPRUSnkqpWILoc4oEblmUfTpR3VL/UcLLnWeZFEiUteebd6IUmquUqqnLeq+4V6fFZHZIuJpZdmhIrLWFnJ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yxrS0rLavlejsRKfIEhLhthDEDJYK/0iRKlQ/E39K/DU99sylP/6IzE89f02mvpXyKVk3li+fDlhYWE0adKEhx9+mOTkZAACAwN5/vnnadKkCS1btuTw4cNZlm/dujXVqlXLtZ1ffvmFO+64g/vuu4/58+dnpB8+fJju3bvTtm1bmjVrxpEjxoPtvffeo0mTJoSEhPDii8Ze1J07d2bLli0AxMTEEBgYCMDs2bPp27cvXbt2pVu3biQmJtKtWzeaNWtGkyZN+P33/5ZdfPPNNzRt2pSQkBA
},
"metadata": {
"needs_background": "light"
}
}
],
"source": [
2021-04-09 13:04:40 +01:00
"plt.plot(fixed_results_200e[:, 0], fixed_results_200e[:, 1], 'x-', label=\"Top-1 Accuracy\")\n",
"plt.plot(fixed_results_200e[:, 0], fixed_results_200e[:, 2], 'x-', label=\"Top-5 Accuracy\")\n",
"plt.plot(fixed_results_200e[:, 0], fixed_results_200e[:, 4], 'x-', label=\"Final Val. Accuracy\")\n",
"\n",
"plt.ylim(0)\n",
"\n",
"plt.title('Accuracy for Fixed Learning Rates')\n",
"plt.ylabel('% Accuracy')\n",
"plt.xlabel('Learning Rate')\n",
"\n",
"plt.legend()\n",
"plt.xscale('log')\n",
"plt.grid()\n",
"plt.show()"
]
},
{
"cell_type": "code",
2021-04-29 00:53:46 +01:00
"execution_count": 138,
2021-04-10 12:20:26 +01:00
"id": "cdf18f4a",
"metadata": {},
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": "<Figure size 432x288 with 1 Axes>",
2021-04-29 00:53: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 392.14375 277.314375\" width=\"392.14375pt\" 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-29T00:45:13.039315</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 392.14375 277.314375 \nL 392.14375 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 50.14375 239.758125 \nL 384.94375 239.758125 \nL 384.94375 22.318125 \nL 50.14375 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(#p4087bff64a)\" d=\"M 65.361932 239.758125 \nL 65.361932 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=\"m46e3bb054f\" style=\"stroke:#000000;stroke-width:0.8;\"/>\n </defs>\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"65.361932\" xlink:href=\"#m46e3bb054f\" y=\"239.758125\"/>\n </g>\n </g>\n <g id=\"text_1\">\n <!-- $\\mathdefault{10^{-6}}$ -->\n <g transform=\"translate(53.611932 254.356562)scale(0.1 -0.1)\">\n <defs>\n <path d=\"M 794 531 \nL 1825 531 \nL 1825 4091 \nL 703 3866 \nL 703 4441 \nL 1819 4666 \nL 2450 4666 \nL 2450 531 \nL 3481 531 \nL 3481 0 \nL 794 0 \nL 794 531 \nz\n\" id=\"DejaVuSans-31\" transform=\"scale(0.015625)\"/>\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 <path d=\"M 678 2272 \nL 4684 2272 \nL 4684 1741 \nL 678 1741 \nL 678 2272 \nz\n\" id=\"DejaVuSans-2212\" transform=\"scale(0.015625)\"/>\n <path d=\"M 2113 2584 \nQ 1688 2584 1439 2293 \nQ 1191 2003 1191 1497 \nQ 1191 994 1439 701 \nQ 1688 409 2113 409 \nQ 2538 409 2786 701 \nQ 3034 994 3034 1497 \nQ 3034 2003 2786 2293 \nQ 2538 2584 2113 2584 \nz\nM 3366 4563 \nL 3366 3988 \nQ 3128 4100 2886 4159 \nQ 2644 4219 2406 4219 \nQ 1781 4219 1451 3797 \nQ 1122 3375 1075 2522 \nQ 1259 2794 1537 2939 \nQ 1816 3084 2150 3084 \nQ 2853 3084 3261 2657 \nQ 3669 2231 3669 1497 \nQ 3669 778 3244 343 \nQ 2819 -91 2113 -91 \nQ 1303 -91 875 529 \nQ 447 1150 447 2328 \nQ 447 3434 972 4092 \nQ 1497 4750 2381 4750 \nQ 2619 4750 2861 4703 \nQ 3103 4656 3366 4563 \nz\n\" id=\"DejaVuSans-36\" transform=\"scale(0.015625)\"/>\n </defs>\n <use transform=\"translate(0 0.765625)\" xlink:href=\"#DejaVuSans-31\"/>\n <use transform=\"translate(63.623047 0.765625)\" xlink:href=\"#DejaVuSans-30\"/>\n <use transform=\"translate(128.203125 39.046875)scale(0.7)\" xlink:href=\"#DejaVuSans-2212\"/>\n <use transform=\"translate(186.855469 39.046875)scale(0.7)\" xlink:href=\"#DejaVuSans-36\"/>\n </g>\n </g>\n </g>\n <g id=\"xtick_2\">\
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAEaCAYAAAAL7cBuAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAAsTAAALEwEAmpwYAAA+WUlEQVR4nO3deXxU5dXA8d9JCAkQSMIEwhLWwQVE9kViFbBWa2vRtta9gtZSa7GbttYuaq1vbd8uthZ9FRdAUdHaqrivxA3ZA8gmEpZAWANJIBCynvePe4NDnOxzZyaT8/185pOZu55n7mTO3Od57n1EVTHGGGNqi4t0AMYYY6KTJQhjjDFBWYIwxhgTlCUIY4wxQVmCMMYYE5QlCGOMMUFZgggTESkRkYEh2M6dIjIvFDHV2u40Efkw4HWd8dZethn7ek1EpjZ3/WgkIneLSIGI7PFwH33d4xIf4u226HiGg4j8WkQeiXQcbU27SAcQa0RkG5ABVAVMPllVkz3eb29gO3CKqubWmvc8kKuqtzR2e6GKV0TuBAap6tUB274gFNsOsq85wE5V/a0X269nv32Bm4F+qrovRNtU4ChQc6FSpaqmAp5+joLE0R/YCiSoamU49x1IVf/o1bZrvdfFwDPAL1S1qt4VCf75jiV2BuGNb6hqcsBjl9c7VNV84B3gu4HTRaQr8DVgrtcxtGF9gQPNSQ4iUt+PtOEBn6HUZkcX5Rp4D8JluPujaCJwGXBdhOOJCpYgwkREVEQGuc/niMj9IvKKiBwWkSUi4g9Y9p8iskNEDonIChE5q5G7mUutBAFcDqxX1U9E5Fcik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fX
},
"metadata": {
"needs_background": "light"
}
}
],
"source": [
2021-04-09 13:04:40 +01:00
"plt.plot(fixed_results_200e[:, 0], fixed_results_200e[:, 3], 'x-', label=\"Final Validation Loss\")\n",
"\n",
"# plt.ylim(0)\n",
"\n",
"plt.title('Final Validation Loss for Fixed Learning Rates')\n",
"plt.ylabel('Loss')\n",
"plt.xlabel('Learning Rate')\n",
"\n",
"# plt.legend()\n",
"plt.xscale('log')\n",
"plt.grid()\n",
"plt.show()"
]
},
{
"cell_type": "markdown",
2021-04-10 12:20:26 +01:00
"id": "01a797d7",
"metadata": {},
"source": [
"# Step-Down\n",
"80/10/10 Split, 100 epochs\n",
"\n",
"## Index\n",
"0. learning rate\n",
"1. step size\n",
"2. gamma\n",
"3. top-1 accuracy\n",
"4. top-5 accuracy\n",
"5. last val loss\n",
"6. last val accuracy"
]
},
{
"cell_type": "code",
2021-04-29 00:53:46 +01:00
"execution_count": 139,
2021-04-10 12:20:26 +01:00
"id": "a9023eeb",
"metadata": {},
"outputs": [],
"source": [
"step_down_results = np.array([\n",
" [1e-2, 0.33, 0.1, 43.79, 70.85, 2.79, 47.24],\n",
" [1e-2, 0.33, 0.25, 45.52, 73.07, 2.90, 49.88],\n",
2021-04-29 00:53:46 +01:00
" [1e-2, 0.33, 0.33, 45.52, 72.64, 3.01, 49.20],\n",
" [1e-2, 0.33, 0.5, 45.71, 71.71, 2.89, 49.39],\n",
" [1e-2, 0.33, 0.75, 40.09, 68.19, 3.00, 46.38]\n",
"])"
]
},
{
"cell_type": "code",
2021-04-29 00:53:46 +01:00
"execution_count": 140,
2021-04-10 12:20:26 +01:00
"id": "9b32b8fe",
"metadata": {},
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": "<Figure size 1000x800 with 1 Axes>",
2021-04-29 00:53: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=\"279.754375pt\" version=\"1.1\" viewBox=\"0 0 352.329688 279.754375\" width=\"352.329688pt\" 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-29T00:45:13.677189</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 279.754375 \nL 352.329688 279.754375 \nL 352.329688 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 242.198125 \nL 337.178125 242.198125 \nL 337.178125 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(#p2246f25997)\" d=\"M 40.603125 242.198125 \nL 40.603125 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=\"m897357f38d\" style=\"stroke:#000000;stroke-width:0.8;\"/>\n </defs>\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"40.603125\" xlink:href=\"#m897357f38d\" y=\"242.198125\"/>\n </g>\n </g>\n <g id=\"text_1\">\n <!-- 0.0 -->\n <g transform=\"translate(32.651563 256.796563)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 <path d=\"M 684 794 \nL 1344 794 \nL 1344 0 \nL 684 0 \nL 684 794 \nz\n\" id=\"DejaVuSans-2e\" transform=\"scale(0.015625)\"/>\n </defs>\n <use xlink:href=\"#DejaVuSans-30\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-2e\"/>\n <use x=\"95.410156\" 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(#p2246f25997)\" d=\"M 99.918125 242.198125 \nL 99.918125 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=\"99.918125\" xlink:href=\"#m897357f38d\" y=\"242.198125\"/>\n </g>\n </g>\n <g id=\"text_2\">\n <!-- 0.2 -->\n <g transform=\"translate(91.966563 256.796563)scale(0.1 -0.1)\">\n <defs>\n <path d=\"M 1228 531 \nL 3431 531 \nL 3431 0 \nL 469 0 \nL 469 531 \nQ 828 903 1448 1529 \nQ 2069 2156 2228 2338 \nQ 2531 2678 2651 2914 \nQ 2772 3150 2772 3378 \nQ 2772 3750 2511 3984 \nQ 2250 4219 1831 4219 \nQ 1534 4219 1204 4116 \nQ 875 4013 500 3803 \nL 500 4441 \nQ 881 4594 1212 4672 \nQ 1544 4750 1819 4750 \nQ 2544 4750 2975 4387 \nQ 3406 4025 3406 3419 \nQ 3406 3131 3298 2873 \nQ 3191 2616 2906 2266 \nQ 2828 2175 2409 1742 \nQ 1991 1309 1228 531 \nz\n\" id=\"DejaVuSans-32\" transform=\"scale(0.015625)\"/>\n </defs>\n <use xlink:href=\"#DejaVuSans-30\"/>\n <use x=\"63.623047\"
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA9QAAAMMCAYAAACyue/GAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAB7CAAAewgFu0HU+AADvrElEQVR4nOzdeZhcVZ3/8c+3l3R3Ons6CyQhgRAIS9iRPQQR3Ecd9xUURkVhAJdBRx3Rn46ijoKOMqOguC/jMs4oMggSkFUgLGEJCYFshCydfekl3f39/XFudd2qrj1dS3e/X89TT92699xbp6tvV9enzrnnmLsLAAAAAAAUp67aFQAAAAAAYCgiUAMAAAAAUAICNQAAAAAAJSBQAwAAAABQAgI1AAAAAAAlIFADAAAAAFACAjUAAAAAACUgUAMAAAAAUAICNQAAAAAAJSBQAwAAAABQAgI1AAAAAAAlIFADAAAAAFACAjUAAAAAACUgUAMAAAAAUAICNQAAAAAAJSBQAwAAAABQAgI1AAAAAAAlIFADAAAAAFACAjUAAAAAACUgUAPAEGBmk83ss2b2gJltM7NeM/PodmG16wcAQ0ns/dOrXRcAQ1tDtSsADCVm9hNJ74yt+oS7X1Ot+mBkMLNDJN0laUa161JOZjZW0tslnS/pOElTJLVK6pC0RdLzkpZK+puk2939xerUdOgwszkKr1smLmmPpB3R7TlJD0t6SNJt7t5ZiTpCMr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xontk7Pl2Sxq7n+fghbHj3ZSn7Cglg7MrBLYB35ZLOl8hICbKPZzp3InKLk77XfZJ+nR6+fTfZRE/X3or4z0KreDN+/m69R+ziH0+H9vvRYUPvANaoKNzdHus7FuyHO+mWJmu6P4n6ee3Qtj
},
"metadata": {
"needs_background": "light"
}
}
],
"source": [
"fig = plt.figure(figsize=(5, 4))\n",
"fig.set_dpi(fig_dpi)\n",
"\n",
"plt.plot(step_down_results[:, 2], step_down_results[:, 3], 'x-', label=\"Top-1 Accuracy\", lw=lw)\n",
"plt.plot(step_down_results[:, 2], step_down_results[:, 4], 'x-', label=\"Top-5 Accuracy\", lw=lw)\n",
"plt.plot(step_down_results[:, 2], step_down_results[:, 6], 'x-', label=\"Final Val. Accuracy\", lw=lw)\n",
"\n",
2021-04-29 00:53:46 +01:00
"plt.ylim(20, 80)\n",
"plt.xlim(0, 1)\n",
"\n",
"plt.title('Accuracy for Step-Down Learning Rates')\n",
"plt.ylabel('% Accuracy')\n",
"plt.xlabel('Step-down Scale Factor, γ')\n",
2021-04-09 13:04:40 +01:00
"\n",
"plt.legend()\n",
"# plt.xscale('log')\n",
"plt.grid()\n",
"\n",
"plt.tight_layout()\n",
"plt.savefig('step-down-accuracy.png')\n",
"\n",
2021-04-09 13:04:40 +01:00
"plt.show()"
]
},
{
"cell_type": "code",
2021-04-29 00:53:46 +01:00
"execution_count": 141,
2021-04-10 12:20:26 +01:00
"id": "69c98182",
2021-04-09 13:04:40 +01:00
"metadata": {},
"outputs": [
{
"output_type": "display_data",
2021-04-09 13:04:40 +01:00
"data": {
"text/plain": "<Figure size 432x288 with 1 Axes>",
2021-04-29 00:53: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 392.14375 277.314375\" width=\"392.14375pt\" 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-29T00:45:13.941758</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 392.14375 277.314375 \nL 392.14375 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 50.14375 239.758125 \nL 384.94375 239.758125 \nL 384.94375 22.318125 \nL 50.14375 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(#p47fc8b1a83)\" d=\"M 65.361932 239.758125 \nL 65.361932 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=\"m2a7ce0777b\" style=\"stroke:#000000;stroke-width:0.8;\"/>\n </defs>\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"65.361932\" xlink:href=\"#m2a7ce0777b\" y=\"239.758125\"/>\n </g>\n </g>\n <g id=\"text_1\">\n <!-- 0.1 -->\n <g transform=\"translate(57.410369 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 <path d=\"M 684 794 \nL 1344 794 \nL 1344 0 \nL 684 0 \nL 684 794 \nz\n\" id=\"DejaVuSans-2e\" transform=\"scale(0.015625)\"/>\n <path d=\"M 794 531 \nL 1825 531 \nL 1825 4091 \nL 703 3866 \nL 703 4441 \nL 1819 4666 \nL 2450 4666 \nL 2450 531 \nL 3481 531 \nL 3481 0 \nL 794 0 \nL 794 531 \nz\n\" id=\"DejaVuSans-31\" transform=\"scale(0.015625)\"/>\n </defs>\n <use xlink:href=\"#DejaVuSans-30\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-2e\"/>\n <use x=\"95.410156\" xlink:href=\"#DejaVuSans-31\"/>\n </g>\n </g>\n </g>\n <g id=\"xtick_2\">\n <g id=\"line2d_3\">\n <path clip-path=\"url(#p47fc8b1a83)\" d=\"M 112.187107 239.758125 \nL 112.187107 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=\"112.187107\" xlink:href=\"#m2a7ce0777b\" y=\"239.758125\"/>\n </g>\n </g>\n <g id=\"text_2\">\n <!-- 0.2 -->\n <g transform=\"translate(104.235544 254.356562)scale(0.1 -0.1)\">\n <defs>\n <path d=\"M 1228 531 \nL 3431 531 \nL 3431 0 \nL 469 0 \nL 469 531 \nQ 828 903 1448 1529 \nQ 2069 2156 2228 2338 \nQ 2531 2678 2651 2914 \nQ 2772 3150 2772 3378 \nQ 2772 3750 2511 3984 \nQ 2250 4219 1831 4219 \nQ 1534 4219 1204 4116 \nQ 875 4013 500 3803 \nL 500 4441 \nQ 881 4594 1212 4672 \nQ 1544 4750 1819 4750 \nQ 2544 4750 2975 4387 \nQ 3406 4025 3406 3419 \nQ 3406 3131 3298
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAEWCAYAAAB8LwAVAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAAsTAAALEwEAmpwYAAA9yUlEQVR4nO3dd3wUdf7H8dcnEGroXUB6bwkgKFjAinoKIiDi2btwcvbTn955lvO8swvWU/EURAKI2CuIUtSEJHSU0BJ6aCFA+uf3xwzegptkE3Yzu8nn+XjsI5uZ2Zn3zs7uZ+Y7TVQVY4wx5lhRXgcwxhgTnqxAGGOM8csKhDHGGL+sQBhjjPHLCoQxxhi/rEAYY4zxywpECUQkS0TaB2E8D4vIu8HIdMx4rxGRH3z+LzLvscOWYVqficjVZX19OBKRx0QkQ0S2e53FhJaIrBSRIV7niCRWIFwislFEDrs/sEceJ6hqjKquD+F0W4pIvoh08NPvAxF5qjTjC1ZefwVNVc9X1bePd9x+pjVFRB4L9ngDmO6JwF1Ad1VtHqRxDheRZBHJdAvPtyLSzu0XkpUEn2lfIyIFPsvvBhF5S0Q6h2qaAeYK6fsOlKr2UNX5wR7vMfM9U0RSROQPpXj9RhE5O9i5gsEKxNEucn9gjzy2hnqCqroF+Aa40re7iDQELgCC/oNsfnMisFtVd5b2hSJS1U+3jsB/cYpOPaAdMBkoOM6cpbFYVWPc6Z8NHAYSRaRnOWYod/4+j3J2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GjbVt27Zleu3BgwepXbt2cAOVk0jNHqm5wbJ7xbIHX2JiYoZ7YufvVKgC0bZ
2021-04-09 13:04:40 +01:00
},
"metadata": {
"needs_background": "light"
}
2021-04-09 13:04:40 +01:00
}
],
"source": [
"plt.plot(step_down_results[:, 2], step_down_results[:, 5], 'x-', label=\"Final Validation Loss\")\n",
"\n",
"# plt.ylim(0)\n",
"\n",
2021-04-10 12:20:26 +01:00
"plt.title('Final Validation Loss for Step-Down Learning Rates')\n",
2021-04-09 13:04:40 +01:00
"plt.ylabel('Loss')\n",
"plt.xlabel('Gamma, γ')\n",
2021-04-09 13:04:40 +01:00
"\n",
"# plt.legend()\n",
"plt.grid()\n",
"plt.show()"
]
},
{
"cell_type": "markdown",
2021-04-10 12:20:26 +01:00
"id": "f9c67f09",
2021-04-09 13:04:40 +01:00
"metadata": {},
"source": [
"# Exponential Decay\n",
"80/10/10 Split, 100 epochs\n",
"\n",
"## Index\n",
"0. learning rate\n",
"1. decay rate\n",
"2. top-1 accuracy\n",
"3. top-5 accuracy\n",
"4. last val loss\n",
"5. last val accuracy"
]
},
{
"cell_type": "code",
2021-04-29 00:53:46 +01:00
"execution_count": 142,
2021-04-10 12:20:26 +01:00
"id": "5322e4d4",
2021-04-09 13:04:40 +01:00
"metadata": {},
"outputs": [],
"source": [
"exp_results = np.array([\n",
" [1e-2, 0.70, 2.35, 8.09, 4.97, 2.75],\n",
" [1e-2, 0.80, 5.0, 15.57, 4.61, 7.23],\n",
2021-04-29 00:53:46 +01:00
" [1e-2, 0.85, 9.94, 26.31, 4.11, 12.81],\n",
2021-04-09 13:04:40 +01:00
" [1e-2, 0.90, 25.88, 52.5, 3.28, 29.17],\n",
" [1e-2, 0.925, 37.43, 63.37, 3.13, 40.81],\n",
" [1e-2, 0.95, 44.1, 71.22, 2.99, 48.84],\n",
" [1e-2, 0.98, 44.41, 71.83, 3.04, 47.61],\n",
" [1e-2, 0.99, 42.43, 69.55, 3.25, 45.47],\n",
" \n",
" [1e-1, 0.85, 12.91, 34.96, 3.85, 14.89],\n",
" [1e-1, 0.9, 0.8, 2.29, 5.29, 0.55]\n",
"])\n",
"two_results = 7"
]
},
{
"cell_type": "code",
2021-04-29 00:53:46 +01:00
"execution_count": 143,
2021-04-10 12:20:26 +01:00
"id": "959af09b",
2021-04-09 13:04:40 +01:00
"metadata": {},
"outputs": [
{
"output_type": "display_data",
2021-04-09 13:04:40 +01:00
"data": {
"text/plain": "<Figure size 1000x800 with 1 Axes>",
2021-04-29 00:53: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=\"279.754375pt\" version=\"1.1\" viewBox=\"0 0 352.360625 279.754375\" width=\"352.360625pt\" 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-29T00:45:14.302793</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 279.754375 \nL 352.360625 279.754375 \nL 352.360625 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 46.965625 242.198125 \nL 345.160625 242.198125 \nL 345.160625 22.318125 \nL 46.965625 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(#p70994f8de8)\" d=\"M 60.519943 242.198125 \nL 60.519943 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=\"m9653574c2b\" style=\"stroke:#000000;stroke-width:0.8;\"/>\n </defs>\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"60.519943\" xlink:href=\"#m9653574c2b\" y=\"242.198125\"/>\n </g>\n </g>\n <g id=\"text_1\">\n <!-- 0.70 -->\n <g transform=\"translate(49.387131 256.796563)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 <path d=\"M 684 794 \nL 1344 794 \nL 1344 0 \nL 684 0 \nL 684 794 \nz\n\" id=\"DejaVuSans-2e\" transform=\"scale(0.015625)\"/>\n <path d=\"M 525 4666 \nL 3525 4666 \nL 3525 4397 \nL 1831 0 \nL 1172 0 \nL 2766 4134 \nL 525 4134 \nL 525 4666 \nz\n\" id=\"DejaVuSans-37\" transform=\"scale(0.015625)\"/>\n </defs>\n <use xlink:href=\"#DejaVuSans-30\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-2e\"/>\n <use x=\"95.410156\" xlink:href=\"#DejaVuSans-37\"/>\n <use x=\"159.033203\" 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(#p70994f8de8)\" d=\"M 108.928222 242.198125 \nL 108.928222 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=\"108.928222\" xlink:href=\"#m9653574c2b\" y=\"242.198125\"/>\n </g>\n </g>\n <g id=\"text_2\">\n <!-- 0.75 -->\n <g transform=\"translate(97.79541 256.796563)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
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA9QAAAMMCAYAAACyue/GAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAB7CAAAewgFu0HU+AAEAAElEQVR4nOzdd3hUVf7H8fdJCAkk0pv0Iq6oqDQVkaasXSyAioKgYkVd3HWtuOK6KpbfgmJZC4ICUkRA7AhSRBGRYgMBlUhXOiaElpzfH3dmcpNMz8wkIZ/X88yTO/eec+65M3du5jvn3HOMtRYRERERERERiUxSSVdARE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Qqla4TzJdyb9rMgx17PUzdv2jeAo/2kqwtMc6X7Dj8tjoXe7wOe8+ln4FQ/afsUeg+vDVLPzEjPoXDy4Fxv7gOOCVJOM+BjV1mvBUnbzZVuXgzOc3d5thjlxPR99qSN9fXcfX6HdS2iYAu1twV0OFC5UJ4aOIGqN+0vFPp/5Uo70JVubBjvi3e/XwPH+XkN/uZ+D4EuQV6v+a5024Fz/aQ7y/Ne5pF/vYrJtbVQPbuFSHtsofSDg6Qt8c8Zzg8cn7nyLQba+EmXhvNDoLdnYBZ+WsxxgnhvWVOB6gH2m4bzI8r/ivv+6BGbR4lXQA89jrQHTquz94L4B0W/mDahYHfr1iHKcwfBS4CMKOvl7lJ8EOgcZTlNXeVkhpknM9Q/6EJpLGF2lY6g3qe5yp6cgNfb3VXvPyHS/p8r7esxONaBrvLGhkh7XaHzosiXAVfaDjhfSoMGKxT8EmuBB2P8XjYtVP4bwPNhPv4Wouz7XOXudp+
2021-04-09 13:04:40 +01:00
},
"metadata": {
"needs_background": "light"
}
2021-04-09 13:04:40 +01:00
}
],
"source": [
"fig = plt.figure(figsize=(5, 4))\n",
"fig.set_dpi(fig_dpi)\n",
"\n",
"plt.plot(exp_results[:two_results, 1], exp_results[:two_results, 2], 'x-', label=\"Top-1 Accuracy\", lw=lw)\n",
"plt.plot(exp_results[:two_results, 1], exp_results[:two_results, 3], 'x-', label=\"Top-5 Accuracy\", lw=lw)\n",
"plt.plot(exp_results[:two_results, 1], exp_results[:two_results, 5], 'x-', label=\"Final Val. Accuracy\", lw=lw)\n",
2021-04-09 13:04:40 +01:00
"\n",
2021-04-29 00:53:46 +01:00
"plt.ylim(0, 100)\n",
2021-04-09 13:04:40 +01:00
"\n",
"plt.title('Accuracy for Exponential Learning Rates')\n",
2021-04-09 13:04:40 +01:00
"plt.ylabel('% Accuracy')\n",
"plt.xlabel('Decay Rate, λ')\n",
"\n",
"plt.legend()\n",
"# plt.xscale('log')\n",
"plt.grid()\n",
"\n",
"plt.tight_layout()\n",
"plt.savefig('exp-accuracy.png')\n",
"\n",
"plt.show()"
]
},
2021-04-09 13:04:40 +01:00
{
"cell_type": "code",
2021-04-29 00:53:46 +01:00
"execution_count": 144,
2021-04-10 12:20:26 +01:00
"id": "fe8641ec",
2021-04-09 13:04:40 +01:00
"metadata": {},
"outputs": [
{
"output_type": "display_data",
2021-04-09 13:04:40 +01:00
"data": {
"text/plain": "<Figure size 1000x800 with 1 Axes>",
2021-04-29 00:53: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=\"279.754375pt\" version=\"1.1\" viewBox=\"0 0 359.543437 279.754375\" width=\"359.543437pt\" 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-29T00:45:14.702187</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 279.754375 \nL 359.543437 279.754375 \nL 359.543437 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 50.14375 242.198125 \nL 345.09875 242.198125 \nL 345.09875 22.318125 \nL 50.14375 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(#pce665220ea)\" d=\"M 63.550795 242.198125 \nL 63.550795 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=\"m90ce8160e3\" style=\"stroke:#000000;stroke-width:0.8;\"/>\n </defs>\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"63.550795\" xlink:href=\"#m90ce8160e3\" y=\"242.198125\"/>\n </g>\n </g>\n <g id=\"text_1\">\n <!-- 0.70 -->\n <g transform=\"translate(52.417983 256.796563)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 <path d=\"M 684 794 \nL 1344 794 \nL 1344 0 \nL 684 0 \nL 684 794 \nz\n\" id=\"DejaVuSans-2e\" transform=\"scale(0.015625)\"/>\n <path d=\"M 525 4666 \nL 3525 4666 \nL 3525 4397 \nL 1831 0 \nL 1172 0 \nL 2766 4134 \nL 525 4134 \nL 525 4666 \nz\n\" id=\"DejaVuSans-37\" transform=\"scale(0.015625)\"/>\n </defs>\n <use xlink:href=\"#DejaVuSans-30\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-2e\"/>\n <use x=\"95.410156\" xlink:href=\"#DejaVuSans-37\"/>\n <use x=\"159.033203\" 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(#pce665220ea)\" d=\"M 111.433101 242.198125 \nL 111.433101 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=\"111.433101\" xlink:href=\"#m90ce8160e3\" y=\"242.198125\"/>\n </g>\n </g>\n <g id=\"text_2\">\n <!-- 0.75 -->\n <g transform=\"translate(100.300288 256.796563)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 2
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA+gAAAMMCAYAAADAdo1wAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAB7CAAAewgFu0HU+AADIIUlEQVR4nOzdd5wU9f3H8ffnjnJH7/VoAoII0sGKYO+xYS+oxKgpRpNoTH5RTNfExFRTULFHsfcuYkWqIB0UvaMjHe4od9/fHzPnDcvWu213+3o+HvvY2d3PfOe7u7Oz85n5zvdrzjkBAAAAAIDMyst0BQAAAAAAAAk6AAAAAABZgQQdAAAAAIAs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5f1+6kn6mbyOTq+Oo46d5P1XdZT3G3pP3ntvI+kYeUmYJN1qZgucc4+HzP+mvM+sr7xttBR5JIDq9viftf+dyZSC77mlP48krZP32ZXIO3jWSFIvSSP8srpLetfMhjjnlsVTXVVvW3SbpFv96TnyWivukTRIVZ1x9pD0rF+XvXHUJR79Jf1O3uexTt56/rW87cQx8vZb8yX9y8zmOec+jlLWXZKC24DgNqO9vG1GZ3n/VXcnqf7VFXrGfG2U2GT9zv7h358VWP6zCj+C1MLQJ/z/jrtUtT+9VV6uUSLvOzpY3nbe5K1/U8zsCOfczjDlPyzpjMDjZZJmyzsoXF/e72eAvPU/tVKV+XPLvpsycwa9TN7G6BKFHLmV96MJHp28L0qZp8sbV7hXlJgekl4NlDcxSuzoQNyUJH2+LwXKfCqO+MWB+N+Hef2f8nbCCiPMny/vaOt2VR2ljNhyQEk6gy4vOVwbiJsr6aCQmDxJN8nb0dwViF0RpX6/k3c
2021-04-09 13:04:40 +01:00
},
"metadata": {
"needs_background": "light"
}
2021-04-09 13:04:40 +01:00
}
],
"source": [
"fig = plt.figure(figsize=(5, 4))\n",
"fig.set_dpi(fig_dpi)\n",
"\n",
"plt.plot(exp_results[:two_results, 1], exp_results[:two_results, 4], 'x-', label=\"Final Validation Loss\", lw=lw)\n",
2021-04-09 13:04:40 +01:00
"\n",
"# plt.ylim(0)\n",
"\n",
2021-04-10 12:20:26 +01:00
"plt.title('Final Validation Loss for Exponential Learning Rates')\n",
2021-04-09 13:04:40 +01:00
"plt.ylabel('Loss')\n",
"plt.xlabel('Decay Rate, λ')\n",
2021-04-09 13:04:40 +01:00
"\n",
"# plt.legend()\n",
"plt.grid()\n",
"\n",
"plt.tight_layout()\n",
"plt.savefig('exp-loss.png')\n",
"\n",
2021-04-09 13:04:40 +01:00
"plt.show()"
]
},
{
"cell_type": "markdown",
2021-04-10 12:20:26 +01:00
"id": "3dfbd4bb",
2021-04-09 13:04:40 +01:00
"metadata": {},
"source": [
"# Sigmoid Decay\n",
"80/10/10 Split, 100 epochs\n",
"\n",
"## Index\n",
"0. learning rate\n",
"1. step size\n",
"2. gamma\n",
"3. top-1 accuracy\n",
"4. top-5 accuracy\n",
"5. last val loss\n",
"6. last val accuracy"
]
},
{
"cell_type": "code",
2021-04-29 00:53:46 +01:00
"execution_count": 145,
2021-04-10 12:20:26 +01:00
"id": "dc7ccd8d",
2021-04-09 13:04:40 +01:00
"metadata": {},
"outputs": [],
"source": [
"sig_results = np.array([\n",
2021-04-29 00:53:46 +01:00
" [1e-2, 50, 0.025, 43.30, 70.60, 2.88, 50.61],\n",
2021-04-09 13:04:40 +01:00
" [1e-2, 50, 0.05, 46.94, 72.88, 2.79, 52.94],\n",
" [1e-2, 50, 0.1, 45.95, 73.63, 2.65, 51.29],\n",
" [1e-2, 50, 0.15, 41.94, 68.56, 2.94, 47.49],\n",
" [1e-2, 50, 0.2, 41.82, 68.13, 2.82, 45.16]\n",
"])"
]
},
{
"cell_type": "code",
2021-04-29 00:53:46 +01:00
"execution_count": 146,
2021-04-10 12:20:26 +01:00
"id": "5ab4be17",
2021-04-09 13:04:40 +01:00
"metadata": {},
"outputs": [
{
"output_type": "display_data",
2021-04-09 13:04:40 +01:00
"data": {
"text/plain": "<Figure size 1000x800 with 1 Axes>",
2021-04-29 00:53: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=\"279.754375pt\" version=\"1.1\" viewBox=\"0 0 352.338437 279.754375\" width=\"352.338437pt\" 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-29T00:45:15.093442</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 279.754375 \nL 352.338437 279.754375 \nL 352.338437 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 242.198125 \nL 334.005625 242.198125 \nL 334.005625 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(#p55af7a0d8a)\" d=\"M 40.603125 242.198125 \nL 40.603125 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=\"ma78ab4597a\" style=\"stroke:#000000;stroke-width:0.8;\"/>\n </defs>\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"40.603125\" xlink:href=\"#ma78ab4597a\" y=\"242.198125\"/>\n </g>\n </g>\n <g id=\"text_1\">\n <!-- 0.00 -->\n <g transform=\"translate(29.470313 256.796563)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 <path d=\"M 684 794 \nL 1344 794 \nL 1344 0 \nL 684 0 \nL 684 794 \nz\n\" id=\"DejaVuSans-2e\" transform=\"scale(0.015625)\"/>\n </defs>\n <use xlink:href=\"#DejaVuSans-30\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-2e\"/>\n <use x=\"95.410156\" xlink:href=\"#DejaVuSans-30\"/>\n <use x=\"159.033203\" 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(#p55af7a0d8a)\" d=\"M 99.283625 242.198125 \nL 99.283625 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=\"99.283625\" xlink:href=\"#ma78ab4597a\" y=\"242.198125\"/>\n </g>\n </g>\n <g id=\"text_2\">\n <!-- 0.05 -->\n <g transform=\"translate(88.150813 256.796563)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
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA9QAAAMMCAYAAACyue/GAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAB7CAAAewgFu0HU+AADxmklEQVR4nOzdd3hc1Z3/8fdXXe623JvcsQGDC8Z2YhsILSSw2WRDCtkEEpMCpMCmkLoh+W02bTdAGpsEEpKQkAoJELoDGIMBY9lgio2b3HuVrC6d3x/njnQljTRFUyTr83qeeXRn5tx7z4yuRvO559xzzDmHiIiIiIiIiCQmJ9sVEBEREREREemJFKhFREREREREkqBALSIiIiIiIpIEBWoRERERERGRJChQi4iIiIiIiCRBgVpEREREREQkCQrUIiIiIiIiIklQoBYRERERERFJggK1iIiIiIiISBIUqEVERERERESSoEAtIiIiIiIikgQFahEREREREZEkKFCLiIiIiIiIJEGBWkRERERERCQJCtQiIiIiIiIiSVCgFhEREREREUmCArWIiIiIiIhIEhSoRURERERERJKgQC0iIiIiIiKSBAVqEZFexsxKzOzrZva8mR0xs0Yzc8HtqmzXr7sJvTcu23Xp6czsqtD7eWcKt6vfUQ9mZueGfodPZrs+IiKJyMt2BUR6KzO7C/hA6KEvOue+m636SO9gZpOA5cCYbNclncysP/B+4CJgFjAM6AtUA4eArcA64AVgmXNuT3ZqKt2NmU3AHx8RE51z5dmpjZzszKwcKO3gaQdUAIeBl4F/Anc55w5lpnYiEg8FapEsCL7sv7PNw1cCCtSSbj+jJUxXA48Du4DG4LHXs1GpVDKzjwD/CwyK8nS/4FYKnBta5/POuf/JRP1EROJkwIDgNgH4F+BbZvZZ59zPMlqR1ieatjnnJmRy/yLdmQK1SHZcDvRp89gMM5vnnFuVjQrJyc/MRgEXBHdrgTOdcxuzWKWUM7ObgK+3eXg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+v7X7nAg/hpziLeBF//BXg3+fJwDfM7EhX9pVOwd/QMvx7A/7vpgz/mVSN/x0swQe10cBjZnaJc+6JDjY5Dv+Z5fAn9jbg/37q8aPWz8a/LwDvAwaY2aXOORdHdacAt+BPDFXg/yZ344+rjroW98Mf96fjw9DTwI7g9ZyH/3sG+HBQ11RODfl14D+D5bX4Y6Mef+zPCR6fCPzNzOZ0coyX4I/xqaGHNwPP42dDmIEPp+/AnxjItnAr7r5Oyg2m5e9nP/Aq/rPgBH62gyn4v+s8/MmKp4L3qe24E6/j/4f0p6WHXQX+f2FMQS+BR/CffRGb8ScwjuD/d785eF3FwI/MbIBz7r+jbGtcsK3+wUP1+IFcN+GPv77BazkT//9YJDOyneh106233PD/KI7Rctb07W2e/3LoubI4tjeb1i21ZcD8DsqOxA9+9oUoz+XhW83CZ4ivA/KjlC0ALgPujfLchNA2yuN8T8pD60yIo0w9/gvORwFrU66wzf1v4wP4gA62a8Fr2R/a/qJ0vt/4LzeRFoMmYrfonhraXyXQv4vH4FWh7d0Zo2wBLcHZ4b+4XRCl3EX4MQAi5VZHO3aCsk+2+V02AV9tW77t7zKB1/fr0PYdPkS+Ayjq4vvWaetLUOb/hco1Ap+lTYscMAn/Jd0BNaHyV3WwzTtDZSLlvwEUtCl3Ov7EV6Ts9/CtjHXAJ6LUY0lwPEXKf6iT1/XTULkG4DNRtjeV1r0vjtHx33PMYzA49l4LldsOLIxS7kPB+1Ibz+8ogd/3hDbHUdTXEsd2+rZ5HQ8Ck6OUG9Dmfd4NDOxgm58P3sOhnex3Mf4EYmR7/95J2fAxVh/8/DHQr025/MjvndYt1JHj8k5gSJt1+gC/D5WtAPp2UI9zQ+WejOP3Uov//NgEnB2l7OXB8R/PMf7
2021-04-09 13:04:40 +01:00
},
"metadata": {
"needs_background": "light"
}
2021-04-09 13:04:40 +01:00
}
],
"source": [
"fig = plt.figure(figsize=(5, 4))\n",
"fig.set_dpi(fig_dpi)\n",
2021-04-09 13:04:40 +01:00
"\n",
"plt.plot(sig_results[:, 2], sig_results[:, 3], 'x-', label=\"Top-1 Accuracy\", lw=lw)\n",
"plt.plot(sig_results[:, 2], sig_results[:, 4], 'x-', label=\"Top-5 Accuracy\", lw=lw)\n",
"plt.plot(sig_results[:, 2], sig_results[:, 6], 'x-', label=\"Final Val. Accuracy\", lw=lw)\n",
2021-04-09 13:04:40 +01:00
"\n",
2021-04-29 00:53:46 +01:00
"plt.ylim(20, 80)\n",
"plt.xlim(0, 0.25)\n",
"\n",
"plt.title('Accuracy for Sigmoid Learning Rates')\n",
2021-04-09 13:04:40 +01:00
"plt.ylabel('% Accuracy')\n",
"plt.xlabel('Gamma, γ')\n",
2021-04-09 13:04:40 +01:00
"\n",
"plt.legend()\n",
"# plt.xscale('log')\n",
"plt.grid()\n",
"\n",
"plt.tight_layout()\n",
"plt.savefig('sig-accuracy.png')\n",
"\n",
2021-04-09 13:04:40 +01:00
"plt.show()"
]
},
{
"cell_type": "code",
2021-04-29 00:53:46 +01:00
"execution_count": 147,
2021-04-10 12:20:26 +01:00
"id": "49f5ca1a",
2021-04-09 13:04:40 +01:00
"metadata": {},
"outputs": [
{
"output_type": "display_data",
2021-04-09 13:04:40 +01:00
"data": {
"text/plain": "<Figure size 432x288 with 1 Axes>",
2021-04-29 00:53: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 392.14375 277.314375\" width=\"392.14375pt\" 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-29T00:45:15.356017</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 392.14375 277.314375 \nL 392.14375 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 50.14375 239.758125 \nL 384.94375 239.758125 \nL 384.94375 22.318125 \nL 50.14375 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(#pfc99a2c875)\" d=\"M 65.361932 239.758125 \nL 65.361932 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=\"m692d9c4e6d\" style=\"stroke:#000000;stroke-width:0.8;\"/>\n </defs>\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"65.361932\" xlink:href=\"#m692d9c4e6d\" y=\"239.758125\"/>\n </g>\n </g>\n <g id=\"text_1\">\n <!-- 0.025 -->\n <g transform=\"translate(51.047869 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 <path d=\"M 684 794 \nL 1344 794 \nL 1344 0 \nL 684 0 \nL 684 794 \nz\n\" id=\"DejaVuSans-2e\" transform=\"scale(0.015625)\"/>\n <path d=\"M 1228 531 \nL 3431 531 \nL 3431 0 \nL 469 0 \nL 469 531 \nQ 828 903 1448 1529 \nQ 2069 2156 2228 2338 \nQ 2531 2678 2651 2914 \nQ 2772 3150 2772 3378 \nQ 2772 3750 2511 3984 \nQ 2250 4219 1831 4219 \nQ 1534 4219 1204 4116 \nQ 875 4013 500 3803 \nL 500 4441 \nQ 881 4594 1212 4672 \nQ 1544 4750 1819 4750 \nQ 2544 4750 2975 4387 \nQ 3406 4025 3406 3419 \nQ 3406 3131 3298 2873 \nQ 3191 2616 2906 2266 \nQ 2828 2175 2409 1742 \nQ 1991 1309 1228 531 \nz\n\" id=\"DejaVuSans-32\" transform=\"scale(0.015625)\"/>\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-30\"/>\n <use x=\"63.623047\" xlink:href=\"#DejaVuSans-2e\"/>\n <use x=\"95.410156\" xlink:href=\"#DejaVuSans-30\"/>\n <use x=\"159.033203\" xlink:href=\"#DejaVuSans-32\"/>\n <use x=\"222.65625\" xlink:href=\"#DejaVuSans-35\"/>\n </g>\n <
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAEWCAYAAAB8LwAVAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAAsTAAALEwEAmpwYAABC8UlEQVR4nO3dd5hU5fn/8fe9nWWXDit1l450WDomippYYldQUUTAoEa/P2uiJjExppmipqjBwlJURIwlxhoLapbeOyiwS29L3V2Wrffvj3Mw4zrbZ/bM7Nyv65qL2VM/czgz98wpzyOqijHGGFNelNcBjDHGhCYrEMYYY/yyAmGMMcYvKxDGGGP8sgJhjDHGLysQxhhj/LICEQAikiciXQKwnEdE5KVAZCq33JtFJNPn7wrzlp+2Fut6X0Qm1nb+UCQivxGRHBHZXw/r+qmIvBDs9dR0vSKSLSLn12emmgrU+9D8jxWIGnDfJAXujnj60U5Vk1R1exDX215ESkSkq59xb4rIn2uyvEDl9VfQVPUiVZ1V12X7WddMEflNoJdbjfV2Au4DeqvqGQFa5uUislpETriF51MR6Qygqr9T1VsCsZ6aqMt6vfq/KS9Y70N3Py923+/HRGShiIyswfwqIt0Cnas+WIGouUvdHfH0Y2+wV6iqe4BPgAm+w0WkBXAxEPAPZPO1TsBhVT1Y0xlFJMbPsG7AbJyi0xToDDwNlNYxZ4Pmb1vWs1dVNQloBcwHXvM4T72wAhEAvt8Q3G9TT4vIuyKSKyJLfL/5i8hfRWSX++1xhYh8p5qrmUW5AgFcB2xU1XUi8qCIbHPXuVFErqxm3pYi8rabZynQtdy0fvOKyIXAT4Fr3W9Wa9zhn4nILe7zKBH5uYjsEJGDIjJbRJq649LcHBNFZK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qLyA/cIlWrfTZA3gX6icgV4lxEcAdQ7UuYVXUL8CHOlydw3icngDz3//P2crMcwDn3dFqF20VEeorIue6+fArnV2B1982AswJRvz4EPsA5Lr4DZweo9HCEH7Nxvvm9qqqFAKq6EXgc56T1AaAfsKCay7sT56f3fpzjtjNqkPf0pX6HRWSln2VnAC/inBzNcuf/v2rm8udBnDfM6cenqvoxznmB13G+GXbFuboLnGL2PM55kx04h0n+5I6bAGS7hwRuA26oTgD3w+FGnJPhOTjH/S9V1aJqvoZjOAVhnYjk4WzfN4E/+lnXBpztNdd9bXk4x6cLq7mu8q7HOTez113nL93t52+9dwBz3PUepepDMP7+b5bjnCh/yl3GVpxzC3XdZ+vE/RUwFmebH8b5dbmcmm3XPwFT3UJ/PzAeyMXZ314tN+0jwCz3cNK4yrYLzonq0yfB9+P8wn2oZq8wcMQ9QWKMCXHur7BjOIcysjyO02C4v4B3Azeo6nyv84QS+wVhTAgTkUvdw3+NcS5zXYdzpZSpAxG5QESauYdyTp8z8HeYL6JZgTAmtF2Oc0hoL86lzdep/ewPhJHANv53mPAKVS2ofJbIY4eYjDHG+GW/IIwxxvgVtAawRKQjzhU3KTiXsz2nqn8tN01znCtduuJc4TJZVde747JxrgooBUpUdUhV62zVqpWmpaXVKm9+fj6NGzeu1bz1LZyyQnjlDaesEF55wykrhFfeumRdsWJFjnvT5rcF6xZtoC1u+zY41wl/idNksu80f8K51A6gF/CJz7hsoFVN1pmenq61NX/+/FrPW9/CKatqeOUNp6yq4ZU3nLKqhlfeumQFlmt9N7WhqvtUdaX7PBenAavyt/X3Bj51p9mMc9NVCsYYYzxXLyepRSQN52apvqp6wmf473BavLxHRIbh3Ok5XFVXiEgWzk0kCjyrqs9VsOypOLe+k5KSkj537txaZczLyyMpqabNAHkjnLJCeOUNp6wQXnnDKSu
2021-04-09 13:04:40 +01:00
},
"metadata": {
"needs_background": "light"
}
2021-04-09 13:04:40 +01:00
}
],
"source": [
"plt.plot(sig_results[:, 2], sig_results[:, 5], 'x-', label=\"Final Validation Loss\")\n",
"\n",
"# plt.ylim(0)\n",
"\n",
2021-04-10 12:20:26 +01:00
"plt.title('Final Validation Loss for Sigmoid Learning Rates')\n",
2021-04-09 13:04:40 +01:00
"plt.ylabel('Loss')\n",
"plt.xlabel('Gamma, γ')\n",
2021-04-09 13:04:40 +01:00
"\n",
"# plt.legend()\n",
"plt.grid()\n",
"plt.show()"
]
},
{
"cell_type": "markdown",
2021-04-10 12:20:26 +01:00
"id": "be993da6",
2021-04-09 13:04:40 +01:00
"metadata": {},
"source": [
"# Best\n",
"\n",
"100 Epochs\n",
"\n",
"top-1 accuracy indexes: 1, 3, 2, 3"
]
},
{
"cell_type": "code",
2021-04-29 00:53:46 +01:00
"execution_count": 148,
2021-04-10 12:20:26 +01:00
"id": "6ab2b999",
2021-04-09 13:04:40 +01:00
"metadata": {},
"outputs": [
{
"output_type": "display_data",
2021-04-09 13:04:40 +01:00
"data": {
"text/plain": "<Figure size 1200x800 with 1 Axes>",
2021-04-29 00:53: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=\"279.754375pt\" version=\"1.1\" viewBox=\"0 0 424.155312 279.754375\" width=\"424.155312pt\" 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-29T00:45:15.716960</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 279.754375 \nL 424.155312 279.754375 \nL 424.155312 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 94.839063 242.198125 \nL 407.411562 242.198125 \nL 407.411562 22.318125 \nL 94.839063 22.318125 \nz\n\" style=\"fill:#ffffff;\"/>\n </g>\n <g id=\"patch_3\">\n <path clip-path=\"url(#p0b3f43b0ca)\" d=\"M 94.839063 232.20358 \nL 205.864814 232.20358 \nL 205.864814 190.121283 \nL 94.839063 190.121283 \nz\n\" style=\"fill:#1f77b4;\"/>\n </g>\n <g id=\"patch_4\">\n <path clip-path=\"url(#p0b3f43b0ca)\" d=\"M 94.839063 179.600709 \nL 237.715952 179.600709 \nL 237.715952 137.518412 \nL 94.839063 137.518412 \nz\n\" style=\"fill:#1f77b4;\"/>\n </g>\n <g id=\"patch_5\">\n <path clip-path=\"url(#p0b3f43b0ca)\" d=\"M 94.839063 126.997838 \nL 233.65251 126.997838 \nL 233.65251 84.915541 \nL 94.839063 84.915541 \nz\n\" style=\"fill:#1f77b4;\"/>\n </g>\n <g id=\"patch_6\">\n <path clip-path=\"url(#p0b3f43b0ca)\" d=\"M 94.839063 74.394967 \nL 241.560594 74.394967 \nL 241.560594 32.31267 \nL 94.839063 32.31267 \nz\n\" style=\"fill:#1f77b4;\"/>\n </g>\n <g id=\"patch_7\">\n <path clip-path=\"url(#p0b3f43b0ca)\" d=\"M 205.864814 232.20358 \nL 292.353625 232.20358 \nL 292.353625 190.121283 \nL 205.864814 190.121283 \nz\n\" style=\"fill:#ff7f0e;\"/>\n </g>\n <g id=\"patch_8\">\n <path clip-path=\"url(#p0b3f43b0ca)\" d=\"M 237.715952 179.600709 \nL 318.984802 179.600709 \nL 318.984802 137.518412 \nL 237.715952 137.518412 \nz\n\" style=\"fill:#ff7f0e;\"/>\n </g>\n <g id=\"patch_9\">\n <path clip-path=\"url(#p0b3f43b0ca)\" d=\"M 233.65251 126.997838 \nL 319.359889 126.997838 \nL 319.359889 84.915541 \nL 233.65251 84.915541 \nz\n\" style=\"fill:#ff7f0e;\"/>\n </g>\n <g id=\"patch_10\">\n <path clip-path=\"url(#p0b3f43b0ca)\" d=\"M 241.560594 74.394967 \nL 322.6419 74.394967 \nL 322.6419 32.31267 \nL 241.560594 32.31267 \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(#p0b3f43b0ca)\" d=\"M 94.839063 242.198125 \nL 94.839063 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=\"m4537c42e8d\" style=\"stroke:#000000;stroke-width:0.8;\"/>\n </defs>\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"94.839063\" xlink:href=\"#m4537c42e8d\" y=\"242.198125\"/>\n </g>\n </g>\n <g id=\"text_1\">\n <!-- 0 -->\n <g transform=\"translate(91.657813 256.796563)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 281
"image/png": "iVBORw0KGgoAAAANSUhEUgAABJsAAAMMCAYAAAD0M6ZoAAAAOXRFWHR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nVts6spAYv6zHD3U2aGmzAi4l3AZxkas+g+yhfSmymDsm9N+SIfwH7A7IjYLTMfaJHdacD+te3rKOfsLsoXqXWAbSlfKprdx9BsLQdRzhu0n0nvluEfXWcRsQpLjglW7z53KnBEtf6CiFg7M+8cJr/JwFnAS2p3L6CczzmUHyrrU6Y53oASKGnZRS8iXlXVod7N6lrK+byXMnvS1tUyidbTfPdbUJ7z/Shfwi6jBGeDoUBOw6qUVmIAdwNXUlofzKWcg02BXSiPYy3g3IjYMzOb/+0dKnyM5zszr4iIiykDBU+nDBbc8fUZEU8Edqs25wPf6pS+jV9RHjdV3Tes1n/Ao6/rJbYj4t0s2UXoIeAC4J+U8Z/2AtakvHbfCTwuIg7I6lv1MD4PHFat/xX4P8o53JIJ0MWvx+9VkxlqDTOXcj3+o8pzCmVSil0o18WqwDcj4uHM/E6XdT0K+HC1eT3lM+gByntfuwkunk0J9k2mPJ8XV/XZlPLDdQXKrFVnRsQ2mXlDN3XpwjTgZ5TX7AOUz9ibKO/BewGNljqHUILfx7TIA4CIeAnlPWFydddCShDr71U5u1HO7YnA23pUfyjPXTJ0bfwPPRpvL0pLy19Q3icaHqA8rpuqMjeivM+sRbl+JtNZz57riHg55X2o8VkxnzL+zxzK63bLqu4rUK7piyNip8y8vU1+OwA/pTxfDZdR3hOmVnlsDnwkIu4e5nGOu4jYgxJ8bsw4+DAlKPL3an0TSnBtJeCJwO8iYtfMvHrAVV2
2021-04-09 13:04:40 +01:00
},
"metadata": {
"needs_background": "light"
}
2021-04-09 13:04:40 +01:00
}
],
"source": [
"\n",
"best_top_1_results = list()\n",
"best_labels = list()\n",
"\n",
"# Fixed\n",
"b_fixed = fixed_results_100e[np.argmax(fixed_results_100e[:, 1])]\n",
"best_top_1_results.append(b_fixed[1:3])\n",
"best_labels.append(f'Fixed\\n{b_fixed[0]}')\n",
"\n",
"# Step Down\n",
"b_sd = step_down_results[np.argmax(step_down_results[:, 3])]\n",
"best_top_1_results.append(b_sd[3:5])\n",
"best_labels.append(f'Step Down\\n{b_sd[0]}, S: {b_sd[1]},\\nγ: {b_sd[2]}')\n",
2021-04-09 13:04:40 +01:00
"\n",
"# Exp\n",
"b_exp = exp_results[np.argmax(exp_results[:, 2])]\n",
"best_top_1_results.append(b_exp[2:4])\n",
"best_labels.append(f'Exponential\\n{b_exp[0]}, λ: {b_exp[1]}')\n",
2021-04-09 13:04:40 +01:00
"\n",
"# Sig\n",
"b_sig = sig_results[np.argmax(sig_results[:, 3])]\n",
"best_top_1_results.append(b_sig[3:5])\n",
"best_labels.append(f'Sigmoid\\n{b_sig[0]}, S: {b_sig[1]},\\nγ: {b_sig[2]}')\n",
"\n",
"fig = plt.figure(figsize=(6, 4))\n",
"fig.set_dpi(fig_dpi)\n",
2021-04-09 13:04:40 +01:00
"\n",
"# print(best_top_1_results)\n",
"# print(best_labels)\n",
"# print(best_top_1_results)\n",
"plt.barh(range(len(best_labels)), [i[0] for i in best_top_1_results], tick_label=best_labels, label='Top-1')\n",
"plt.barh(range(len(best_labels)), [i[1] - i[0] for i in best_top_1_results], tick_label=best_labels, label='Top-5', left=[i[0] for i in best_top_1_results])\n",
"\n",
"plt.legend()\n",
"plt.grid(axis='x')\n",
"plt.title('Best Test Accuracy for Learning Schedule Policies')\n",
2021-04-09 13:04:40 +01:00
"plt.xlabel('% Test Accuracy')\n",
"plt.ylabel('Learning Schedule Policies')\n",
"\n",
2021-04-29 00:53:46 +01:00
"plt.xticks(np.linspace(0, 100, 11))\n",
"plt.xlim(0, 100)\n",
"\n",
"plt.tight_layout()\n",
"plt.savefig('best-barh.png')\n",
"\n",
2021-04-09 13:04:40 +01:00
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": null,
2021-04-10 12:20:26 +01:00
"id": "8f36766a",
"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
}