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

594 lines
924 KiB
Plaintext
Raw Normal View History

2021-04-30 19:47:47 +01:00
{
"cells": [
{
"cell_type": "code",
"execution_count": 106,
"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",
"id": "7ecc547f",
"metadata": {},
"source": [
"# Fixed Learning Rate\n",
"80/10/10 Split, 50 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",
"execution_count": 107,
"id": "1b2471d2",
"metadata": {},
"outputs": [],
"source": [
"fixed_results_100e = np.array([\n",
" [1e-4, 0.8, 3.03, 5.27, 0.55],\n",
" [1e-3, 12.29, 33.17, 3.96, 15.01],\n",
" [2e-3, 21.74, 47.56, 3.68, 25.00],\n",
" [5e-3, 32.92, 60.90, 3.27, 35.66],\n",
" [1e-2, 32.06, 58.93, 2.98, 35.54],\n",
" [5e-2, 0.80, 2.10, 5.29, 0.55],\n",
" [1e-1, 0.80, 2.10, 5.29, 0.55]\n",
"])"
]
},
{
"cell_type": "markdown",
"id": "ca34155e",
"metadata": {},
"source": [
"## 100 Epochs"
]
},
{
"cell_type": "code",
"execution_count": 122,
"id": "c664a31c",
"metadata": {},
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": "<Figure size 1000x600 with 1 Axes>",
"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=\"207.070375pt\" version=\"1.1\" viewBox=\"0 0 352.343125 207.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-30T08:53:50.243266</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 207.070375 \nL 352.343125 207.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 169.514125 \nL 345.143125 169.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(#pff2e03c06c)\" d=\"M 49.249465 169.514125 \nL 49.249465 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=\"mc47d1a3cd7\" style=\"stroke:#000000;stroke-width:0.8;\"/>\n </defs>\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"49.249465\" xlink:href=\"#mc47d1a3cd7\" y=\"169.514125\"/>\n </g>\n </g>\n <g id=\"text_1\">\n <!-- $\\mathdefault{10^{-6}}$ -->\n <g transform=\"translate(37.499465 184.112562)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": "iVBORw0KGgoAAAANSUhEUgAAA9QAAAJECAYAAAD3xWxzAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAB7CAAAewgFu0HU+AAEAAElEQVR4nOzdd3gUVdvA4d9JDwm99yYICEpX6QhWEFCaBQQFsWDBT1/1VVQs2F9BQKwIAqGpdFERMER6CYia0In0XhOSQJLz/TG7m9lkW5LdTXvu69orszPPnD27O7vZZ86Zc5TWGiGEEEIIIYQQQuRMQH5XQAghhBBCCCGEKIwkoRZCCCGEEEIIIXJBEmohhBBCCCGEECIXJKEWQgghhBBCCCFyQRJqIYQQQgghhBAiFyShFkIIIYQQQgghckESaiGEEEIIIYQQIhckoRZCCCGEEEIIIXJBEmohhBBCCCGEECIXJKEWQgghhBBCCCFyQRJqIYQQQgghhBAiFyShFkIIIYQQQgghckESaiGEEEIIIYQQIhckoRZCCCGEEEIIIXJBEmohhBBCCCGEECIXJKEWQgghhBBCCCFyQRJqIYQQQgghhBAiFyShFkIIIYQQQgghckESaiGEEEIIIYQQIhckoRZCCFGgKKXKK6XeUEptVEqdU0qlK6W05TY0v+uXn5RSQ02vxbT8ro8/KKWiTc+5S37XR+Sc6f3T+V0XIYTwNkmohRAOKaVmmn8EKaVeyu86iaJPKVUP+BMYA7QFylBE/lcppepk+Ux5ekvI77oXJUqpBDlBI/xBKTXNzWc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x+337
},
"metadata": {
"needs_background": "light"
}
}
],
"source": [
"fig = plt.figure(figsize=(5, 3))\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",
"\n",
"plt.ylim(0, 70)\n",
"plt.xlim(7e-7, 2e-1)\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",
"\n",
"plt.tight_layout()\n",
"plt.savefig('fixed-accuracy-50e.png')\n",
"\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 109,
"id": "bf5fa35b",
"metadata": {},
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": "<Figure size 1000x800 with 1 Axes>",
"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.32625 279.070375\" width=\"352.32625pt\" 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-29T22:24:57.364515</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.32625 279.070375 \nL 352.32625 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 43.78125 241.514125 \nL 345.12625 241.514125 \nL 345.12625 22.318125 \nL 43.78125 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(#pf13dbb45aa)\" d=\"M 57.47875 241.514125 \nL 57.47875 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=\"m03e2fa57a1\" style=\"stroke:#000000;stroke-width:0.8;\"/>\n </defs>\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"57.47875\" xlink:href=\"#m03e2fa57a1\" y=\"241.514125\"/>\n </g>\n </g>\n <g id=\"text_1\">\n <!-- $\\mathdefault{10^{-4}}$ -->\n <g transform=\"translate(45.72875 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 2419 4116 \nL 825 1625 \nL 2419 1625 \nL 2419 4116 \nz\nM 2253 4666 \nL 3047 4666 \nL 3047 1625 \nL 3713 1625 \nL 3713 1100 \nL 3047 1100 \nL 3047 0 \nL 2419 0 \nL 2419 1100 \nL 313 1100 \nL 313 1709 \nL 2253 4666 \nz\n\" id=\"DejaVuSans-34\" transform=\"scale(0.015625)\"/>\n </defs>\n <use transform=\"translate(0 0.684375)\" xlink:href=\"#DejaVuSans-31\"/>\n <use transform=\"translate(63.623047 0.684375)\" xlink:href=\"#DejaVuSans-30\"/>\n <use transform=\"translate(128.203125 38.965625)scale(0.7)\" xlink:href=\"#DejaVuSans-2212\"/>\n <use transform=\"translate(186.855469 38.965625)scale(0.7)\" xlink:href=\"#DejaVuSans-34\"/>\n </g>\n </g>\n </g>\n <g id=\"xtick_2\">\n <g id=\"line2d_3\">\n <path clip-path=\"url(#pf13dbb45aa)\" d=\"M 148.795417 241.514125 \nL 148.795417 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=\"148.795417\" xlink:href=\"#m03e2fa57a1\" y=\"241.514125\"/>\n </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JzevouNerO49cSf+RNCru4fmx2055Y0N3k/eb0b3u9I30bGy+ktfypHXsft0ecSXvNzA+zzvkFXq19srbsdsUy+90ectVkaT/M7NuzrlbQuRk8obr+qy872KWvO/CJA2LPZaWnHOLzewWSffEHvqVmb3mnJsfH2dei4KHdfC69bfVQMeQZvYHSTfHPbRV3jZpk7zPdqS8z8UkfVVSDzP7jHOu3mb7ZnatvGHQalXKK+TWSOogbxvXQd5y/L2g95wqZnahvN+z2ksV4te1GkmD5F0HmydvHX7HzMY45zY3MMtkbrsulFQb+5G873uXvN/bDg1MM0xeR1mtJJVKelPSNnnbkzPk7YPkSrrbzD50ieuVOk/S0/K2RRXyDuytkLesnaqDn9MESb+TdH1DMzKvxcULOvS3daa8z7dA0nGSBkqaZGZbE5R/k5hZvrzvt1ZDy4nkfW+129GV8kYC2CLvgHI7eb/vJbHnz5D0spmd4Jw7UGc+L8v73Rws7/OWGh6BYFk9OQ+JxcaPuDJH3u9lmbxlZay83/Uekl4ys085516rZ15f0MHfLcn7vX9H3r5rlbyDLIPkLZeM1x0v1RU9N25hbkrNGepyeT9yl0uyOnElOvSI8d985vk5eeO6HukT00/S5Lj53e8TOy4u7vUEfb7/iZvn0yHil8TF/189z98p6dNq4Mi1vI3QVbHP18nbYDd4Zl4JOkMtr5jbHBf3gaQhdWJyJH1H3s7YgbjY1T75/VLezlKbBp632HJQGje/U3zm92Bc3FUhv8PAaeQVcXvi4t6ru1zG3v+t8grt2rg/hVm
},
"metadata": {
"needs_background": "light"
}
}
],
"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",
"\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-50e.png')\n",
"\n",
"plt.show()"
]
},
{
"cell_type": "markdown",
"id": "01a797d7",
"metadata": {},
"source": [
"# Step-Down\n",
"80/10/10 Split, 50 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",
"execution_count": 110,
"id": "a9023eeb",
"metadata": {},
"outputs": [],
"source": [
"step_down_results = np.array([\n",
" [1e-2, 0.33, 0.1, 33.35, 63.80, 2.81, 37.93],\n",
" [1e-2, 0.33, 0.2, 40.89, 68.25, 2.78, 44.24],\n",
" [1e-2, 0.33, 0.4, 39.22, 67.45, 2.90, 44.00],\n",
" [1e-2, 0.33, 0.6, 39.22, 64.98, 2.89, 43.75],\n",
" [1e-2, 0.33, 0.8, 38.36, 67.14, 2.79, 40.50]\n",
"])"
]
},
{
"cell_type": "code",
"execution_count": 124,
"id": "9b32b8fe",
"metadata": {},
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": "<Figure size 1000x800 with 1 Axes>",
"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-30T08:55:12.713528</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(#pbc723ca251)\" 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=\"m8dc6c6fe6c\" 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=\"#m8dc6c6fe6c\" 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(#pbc723ca251)\" 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=\"#m8dc6c6fe6c\" 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 x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7j0mz2HUf4c/t2aPtv4qSVos2ZJfmaMkn3SvpUTJ4vyXfx6ClpiqSx8oN6/lD+c/5GGmUbJekG+dqdHfL/u+vk/w+Olx/JvFzST8yszDn34zTyzDvnXL2ZPajoIHDHmJk55680w8zsu5KuC22qlz8X35d/38fL/8+Xy///7mlmn46T1+zQ+rQkxTsu9nmissXkMzvO/rAT5QPScvmyvyB/rowJ8qmQr6n7m5nt75xbmiK/gglqNf8j3wc+YrF8gLlZ/vM/Wv686ybpFjPr7Zz7eYIsByvaimSl/PfyWvnAMTIa9GT57+SDJM0xs4OdcxvTKG61pP+T/x5qkg9aFgfbJyc57nfyv8stkubKfy+WSTpC0d/DyfLf+x9OoxzpyuV58Vf5mxURm+TPy02SRsqf2xMl/Vv+MyqmcEuGZvnv/njK5X+fJf8d97b83Pbb5H8zRsj/jXpL6iHpj2bW6Jy7NyafbYp+Z39F0ZkHYmcoiFgVu8HMbpJ0fmjTBvm/11r53/hJkvaXP2+/JmkPM/tI7G9P8Jvwb/lzNOKtYNkS5DVU/twfFqds6CqKHdGzsJTyIv/juFXRO48fidn/w9C+eWnkN0lta77mSZqSIO1Q+eaW34+zr0LSs6F8dskHEJVx0lZJ+pik++PsGx3KY1man8my0DGj00jTKH9h/XXF1OZJqo55frV8AN47Qb4WvJdwjdkx+fy85S8atyt6NztVje6+odfbIalXB8/BM0P5zUqRtkrRwNnJB2zt7pZLmi4fIEbSvRrv3AnSzo75W7ZI+lFs+ti/ZQbvL7aW8Tn5WvCaDn5urXlmcMwVoePWyF/wtquBDs7RLaG0n02Q36xQmvrg8U+x57d8sHlfKG2zpKM68v5DeY+O+Xzj/s+myOM
},
"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",
"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",
"\n",
"plt.legend()\n",
"# plt.xscale('log')\n",
"plt.grid()\n",
"\n",
"plt.tight_layout()\n",
"plt.savefig('step-down-accuracy-50e.png')\n",
"\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 112,
"id": "69c98182",
"metadata": {},
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": "<Figure size 432x288 with 1 Axes>",
"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-29T22:24:58.404828</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(#p5f5f760751)\" 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=\"m591d25a2bd\" 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=\"#m591d25a2bd\" 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(#p5f5f760751)\" d=\"M 108.842451 239.758125 \nL 108.842451 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.842451\" xlink:href=\"#m591d25a2bd\" y=\"239.758125\"/>\n </g>\n </g>\n <g id=\"text_2\">\n <!-- 0.2 -->\n <g transform=\"translate(100.890889 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+gAAAACXBIWXMAAAsTAAALEwEAmpwYAABB5UlEQVR4n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HHzuhXMcIBZ3RUdELgEuasb8m2Ixzpln94hIlIhcgXPcMSCqegBnl/F/uoOScHZfHxaRnrgrMj724BzjqVXvcnG3Rq5wV5aOu68b6Oe7yaxAtJw5wIc4+8XzcX6wGtssresFnDXEv6vqcQBV3QA8jvOh3QOcDiwM8PXuwdns342zL3xGE/LWnr2yX0RW+nnt6Thna3wG5LrT/zjAXP78HGffbe3jE1X9GGef+Rs4a3VZOPvGwSlmf8U5bpKPs+vpUXfcLUCeuzk/FQjoLA9V3YyzdvdHnIPjl+Gc+lwR4Hs4hFMQ1opIGc7yfQt4xB3vb5neivNjuMF9L6/j7mJxfYFzTKoY+B/galXd30CGce68S3B2DyUDZ6rq2kDeo6p+hfOj87n7/xJgO7DQXek4VTdw8t93m6ruwNli/jecQrAD58czQlVLgXtxCtpB4EacXTdB5y6LK4E7cf6mN+MckD/ehJf5P+BSERmOU5xH4Wyhv4ez4ubrd8C/u7uTHmxoubiPn+JsCR7A2bL7YZPfZIDk5N1sxphQISK345wUcLbXWdo7EfkCeE5VZzTauA2xLQhjjKlDRM4Vke7uLqbbgOE4W4TtitdXHxpjTCgaxNfXEG3H2bW3y9tIrc92MRljjPHLdjEZY4zxq83sYkpNTdXMzMxTnv7IkSMkJCS0XKAgCqesEF5
},
"metadata": {
"needs_background": "light"
}
}
],
"source": [
"plt.plot(step_down_results[:, 2], step_down_results[:, 5], 'x-', label=\"Final Validation Loss\")\n",
"\n",
"# plt.ylim(0)\n",
"\n",
"plt.title('Final Validation Loss for Step-Down Learning Rates')\n",
"plt.ylabel('Loss')\n",
"plt.xlabel('Gamma, γ')\n",
"\n",
"# plt.legend()\n",
"plt.grid()\n",
"plt.show()"
]
},
{
"cell_type": "markdown",
"id": "f9c67f09",
"metadata": {},
"source": [
"# Exponential Decay\n",
"80/10/10 Split, 50 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",
"execution_count": 113,
"id": "5322e4d4",
"metadata": {},
"outputs": [],
"source": [
"exp_results = np.array([\n",
" [1e-2, 0.70, 1.17, 4.82, 5.14, 0.98],\n",
" [1e-2, 0.80, 1.79, 7.23, 5.05, 2.27],\n",
" [1e-2, 0.90, 6.18, 17.11, 4.48, 8.76],\n",
" [1e-2, 0.925, 13.84, 33.42, 3.83, 16.67],\n",
" [1e-2, 0.95, 28.91, 53.43, 3.07, 31.25],\n",
" [1e-2, 0.98, 42.0, 69.98, 2.75, 45.16],\n",
" [1e-2, 0.99, 37.92, 66.83, 2.77, 43.57]\n",
"])\n",
"two_results = 7"
]
},
{
"cell_type": "code",
"execution_count": 125,
"id": "959af09b",
"metadata": {},
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": "<Figure size 1000x600 with 1 Axes>",
"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=\"207.754375pt\" version=\"1.1\" viewBox=\"0 0 352.333438 207.754375\" width=\"352.333438pt\" 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-30T08:55:25.457159</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 207.754375 \nL 352.333438 207.754375 \nL 352.333438 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 170.198125 \nL 334.000625 170.198125 \nL 334.000625 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(#ped170f21db)\" d=\"M 46.965625 170.198125 \nL 46.965625 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=\"mea9a58255f\" style=\"stroke:#000000;stroke-width:0.8;\"/>\n </defs>\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"46.965625\" xlink:href=\"#mea9a58255f\" y=\"170.198125\"/>\n </g>\n </g>\n <g id=\"text_1\">\n <!-- 0.65 -->\n <g transform=\"translate(35.832813 184.796562)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 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 <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=\"#
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA9QAAAJECAYAAAD3xWxzAAAAOXRF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LQgaWvhDH52f4BtpYC5rnIygYFA6QBpU4CLgUkBtjUgzK+1AfJkuPI0iCDNYZx/HjcBJle6MrmeP40TgAdsUcT5Z3oxToDgLb9DPF9vnH/mf5PTkhKulbC5a397gWMK+B7s7ypvZJi0KeQEYxbnC0y3AOnOxRkDwN0ykue940k7K9e5zAYG506f+1xGcXzu92BMWlE85bbF6TniLfeaXNur4gRY3u1DQ5Q1xJXuoOfvVKBWrnTlcL7MuY+nTyGdqwM4gcw9QKlc6erhfAn3pp0R4threermTfsecGyAdDWBia50SwnQ4pjrfB/0vJ9+B04NkLZ3rnN4bYh6ZkT7HookD8715l/A8SHKaQh85SrrnRBpu7jSzYrB+9xdni1AOTE9z560sb6eu9/fEV2L8G+h9raAPgOUz5WnCk6g6k27mlz/r1xp+7vSjYzgvHj3+yPQNMBr8A/3OQQ6hXi9ZrvSbQO6B0h3ludcZpNzvYrJtTVXPbuESXtCrvQDQ6Qt9M8Zzg8cM1z55gOtAqQri/NDoLdn4F4CtJjjBPHesj4C0oLstyzOjyhvFPT86FE0HoVeAT30KGoPnFZn7wVxC3m/mNbHv7t1izDluYPgBUBqPuvl7lJ8COiYz3IauMrJiDBPRrh/0LnSWCLsKh1FvU9zlT0+Aa+3u6vef8Kk/a8r7bsxONb+rvJGhkl7fa73RZ4vA6607XC+lIYMVvD/EmuBh2J8LhvkKv894JUIH/8IU/a/XOXucr9fceZ
},
"metadata": {
"needs_background": "light"
}
}
],
"source": [
"fig = plt.figure(figsize=(5, 3))\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",
"\n",
"plt.xlim(0.65, 1)\n",
"plt.ylim(0, 100)\n",
"\n",
"plt.title('Accuracy for Exponential Learning Rates')\n",
"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-50e.png')\n",
"\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 115,
"id": "fe8641ec",
"metadata": {},
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": "<Figure size 1000x800 with 1 Axes>",
"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.763806 279.754375\" width=\"352.763806pt\" 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-29T22:24:59.349885</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.763806 279.754375 \nL 352.763806 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 43.78125 242.198125 \nL 337.901987 242.198125 \nL 337.901987 22.318125 \nL 43.78125 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(#pf6c0231611)\" d=\"M 57.150374 242.198125 \nL 57.150374 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=\"md25efafee0\" style=\"stroke:#000000;stroke-width:0.8;\"/>\n </defs>\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"57.150374\" xlink:href=\"#md25efafee0\" y=\"242.198125\"/>\n </g>\n </g>\n <g id=\"text_1\">\n <!-- 0.70 -->\n <g transform=\"translate(46.017562 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(#pf6c0231611)\" d=\"M 103.250803 242.198125 \nL 103.250803 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=\"103.250803\" xlink:href=\"#md25efafee0\" y=\"242.198125\"/>\n </g>\n </g>\n <g id=\"text_2\">\n <!-- 0.75 -->\n <g transform=\"translate(92.117991 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": "iVBORw0KGgoAAAANSUhEUgAAA9UAAAMMCAYAAABde4T4AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAB7CAAAewgFu0HU+AACsH0lEQVR4nOzdd5xU1f3/8fdnG7v03sFVQFFBAQWxUexdsZeoWGKi0RiNJcnvm4T0qDFqjFETC2osMVFsMXaKCigqKqJIkaX3Xrbv+f1xZ93Lsnun7NSd1/PxmMdO+cy5n5k7c/d+5p57jjnnBAAA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lTe9vQDedusHHnfm9qeP8PkfaZOCsgxV9K/JJ3lu3uFvO/iulB+h8j7/uRJ+pm8wTaviiDHnvL+V/WQ9x16V95r7yzpKHmFkyT9wsy+dM79q97z35L3ng2Ut42WGh9BPtaR4tP2f2c8JWA9dwg9R5LWynvvlsv7waulpP6SRoTaKpY01cyGOecWRpKuYtsW/VLSL0LXP5XXK7BS0hDVDQi5p6QXQrlURZBLJAZJ+oO892OtvM/5BnnbiaPk7bfmSnrAzOY452YGtHWnJP82wL/N6CZvm9FL3v+qu+OUf6zqH5leExAbr+/ZfaG/43zLf0ENzzz0Vf07Qv877lTd/vRWebXGcnnraH9523mT9/mbYmaHO+d2NtD+PyWd5ru9UNJseT/k5sv7/gyW9/lPrERV61zic1FqjlSXyduAfEf1fiGV90H3/wr4SECbp8qb97V/QMyekl7ztfdQQOwYX9yUOL2///W1+VwE8V/74v/YwON/k7fjVNTI83Pl/aq5XXW/BjZ6hF5xOlItr6Bb44v7XNK+9WJyJN0ib+e
},
"metadata": {
"needs_background": "light"
}
}
],
"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",
"\n",
"# plt.ylim(0)\n",
"\n",
"plt.title('Final Validation Loss for Exponential Learning Rates')\n",
"plt.ylabel('Loss')\n",
"plt.xlabel('Decay Rate, λ')\n",
"\n",
"# plt.legend()\n",
"plt.grid()\n",
"\n",
"plt.tight_layout()\n",
"plt.savefig('exp-loss-50e.png')\n",
"\n",
"plt.show()"
]
},
{
"cell_type": "markdown",
"id": "3dfbd4bb",
"metadata": {},
"source": [
"# Sigmoid Decay\n",
"80/10/10 Split, 50 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",
"execution_count": 116,
"id": "dc7ccd8d",
"metadata": {},
"outputs": [],
"source": [
"sig_results = np.array([\n",
" [1e-2, 50, 0.05, 38.67, 66.09, 3.01, 42.59],\n",
" [1e-2, 50, 0.1, 41.75, 70.04, 2.73, 45.83],\n",
" [1e-2, 50, 0.2, 41.38, 70.04, 2.57, 45.04],\n",
" [1e-2, 50, 0.4, 39.35, 68.93, 2.39, 44.24]\n",
"])"
]
},
{
"cell_type": "code",
"execution_count": 117,
"id": "5ab4be17",
"metadata": {},
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": "<Figure size 1000x800 with 1 Axes>",
"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-29T22:24:59.826420</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(#pca50ee1e14)\" 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=\"m75c025e00b\" 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=\"#m75c025e00b\" 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(#pca50ee1e14)\" 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=\"#m75c025e00b\" y=\"242.198125\"/>\n </g>\n </g>\n <g id=\"text_2\">\n <!-- 0.1 -->\n <g transform=\"translate(91.966563 256.796563)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 </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_3\">\n <g id=\"line2d_5\">\n <path clip-path=\"url(#pca50ee1e14)\" d=\"M 159.233125 242.198125 \nL 159.233125 22.318125 \n\" style=\"fill:none;
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA9QAAAMMCAYAAACyue/GAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAB7CAAAewgFu0HU+AADW/klEQVR4nOzdd5xcVf3/8fdn+6aSAoQUkhCCoURIgYBCSKQoAlIDiCBo+KkIKoh+sRv161cRvxRRUAGlo1QBv/RgCMEAgSRICwkhldBCerJ9zu+Pc2f37mT6TtvM6/l4zGPvzJx775nZu7Pzvufcc8w5J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YFu9g4da5AdyfUv++OsZvJb95f8fA7lX7ETPjVs53+T/UWxUx1nTY2Oe/0HouflpbG+cOrfUzpc0KUHZQfKDn/1XnOeq5FvNwmeIL5BUHadsjaTjJd0f57kRoW0sT/M9WR5aZ0QaZVrkv+D8P0kWU6425v6v5AN4nwTbteC1fBDa/qH5fL/lv9xEWwwiSt2iu09of1sk9e7iMXhuaHs3pShbo47g7OS/uB0Zp9zR8mMARMu9FO/YCcrOivldRiT9KLZ87O8yg9d3c2j7Tj5EniCprovvW9LWl6DML0Ll2iRdopgWOUl7yH9Jd5IaQ+XPTbDNm0JlouV/Jqkmptx+8ie+omV/I9/K2Czpa3HqMTk4nqLlv5jkdV0bKtcq6VtxtjdanXtfbFTiv+eUx2Bw7L0eKrdS0iFxyn0xeF+a0vkdZfD7HhFzHMV9LWlsp2fM63hY0qg45frEvM9rJPVNsM3vBu/hwCT7PUz+BGJ0e2clKRs+xlqCn7+X1CumXHX0967OLdTR4/ImSf1j1ukh6Y5Q2c2Seiaox5RQuVlp/F6a5D8
},
"metadata": {
"needs_background": "light"
}
}
],
"source": [
"fig = plt.figure(figsize=(5, 4))\n",
"fig.set_dpi(fig_dpi)\n",
"\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",
"\n",
"plt.ylim(20, 80)\n",
"plt.xlim(0, 0.5)\n",
"\n",
"plt.title('Accuracy for Sigmoid Learning Rates')\n",
"plt.ylabel('% Accuracy')\n",
"plt.xlabel('Gamma, γ')\n",
"\n",
"plt.legend()\n",
"# plt.xscale('log')\n",
"plt.grid()\n",
"\n",
"plt.tight_layout()\n",
"plt.savefig('sig-accuracy-50e.png')\n",
"\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": 118,
"id": "49f5ca1a",
"metadata": {},
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": "<Figure size 432x288 with 1 Axes>",
"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 385.78125 277.314375\" width=\"385.78125pt\" 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-29T22:25:00.155819</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 385.78125 277.314375 \nL 385.78125 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 43.78125 239.758125 \nL 378.58125 239.758125 \nL 378.58125 22.318125 \nL 43.78125 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(#p84aa040a28)\" d=\"M 58.999432 239.758125 \nL 58.999432 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=\"mcc375b0908\" style=\"stroke:#000000;stroke-width:0.8;\"/>\n </defs>\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"58.999432\" xlink:href=\"#mcc375b0908\" y=\"239.758125\"/>\n </g>\n </g>\n <g id=\"text_1\">\n <!-- 0.05 -->\n <g transform=\"translate(47.866619 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 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-35\"/>\n </g>\n </g>\n </g>\n <g id=\"xtick_2\">\n <g id=\"line2d_3\">\n <path clip-path=\"url(#p84aa040a28)\" d=\"M 102.479951 239.758125 \nL 102.479951 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=\"102.479951\" xlink:href=\"#mcc375b0908\" y=\"239.758125\"/>\n </g>\n </g>\n <g id=\"text_2\">\n <!-- 0.10 -->\n <g transform=\"translate(91.347139 254.356562)scale(0.1 -0.1)\">\n <defs>\n <path d=\"M 79
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYIAAAEWCAYAAABrDZDcAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAAsTAAALEwEAmpwYAAA2pElEQVR4nO3deXxU9fX/8dfJCmRjCSQhQAIJiCFhCyCiQIIrwd1arUjVaikWra3an92+rba1m1Wr4lq1uBbbussiFAKIiAKKJAQQwg4JEBRIgAAJ5/fHvdgxJiHbZGYy5/l4zCMz937uve+5uTNn7i6qijHGmOAV4usAxhhjfMsKgTHGBDkrBMYYE+SsEBhjTJCzQmCMMUHOCoExxgQ5KwQNJCIVItKnBcZzj4i81BKZaoz3BhFZ4vG6zrw12zZhWrNF5PqmDu+PROT3IlImIqWtMK1fiMgz3p5OY6crIltE5NzWzNRYLfU5NF9nhaAG98NwxF3gTj66q2q0qm7y4nSTRaRKRNJq6feGiPy1Me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Lz85s8rC8EUt5AyqoaWHkDKatqYOUNpKyqzcsLrFC7xIQxxpjaWCEwxpggZ4XAGGOCnBUCY4wJclYIjDEmyLX5QvDkomKWFpd9rdvS4jKeXFTso0TGGONf2nwhGNgjjltf+fSrYrC0uIxbX/mUgT3ifJzMGGP8Q8CdUNZYo9LimXbtEG556RM6R1Sxf/EnPDZxKKPSGnoDLmOMadu8tkbg3rjiYxH5TETWiMi9tbSJFJFXRWSjiHwkIqneyDIqLZ4xfePZfEAZmtLJioAxxnjw5qaho8A
},
"metadata": {
"needs_background": "light"
}
}
],
"source": [
"plt.plot(sig_results[:, 2], sig_results[:, 5], 'x-', label=\"Final Validation Loss\")\n",
"\n",
"# plt.ylim(0)\n",
"\n",
"plt.title('Final Validation Loss for Sigmoid Learning Rates')\n",
"plt.ylabel('Loss')\n",
"plt.xlabel('Gamma, γ')\n",
"\n",
"# plt.legend()\n",
"plt.grid()\n",
"plt.show()"
]
},
{
"cell_type": "markdown",
"id": "be993da6",
"metadata": {},
"source": [
"# Best\n",
"\n",
"100 Epochs\n",
"\n",
"top-1 accuracy indexes: 1, 3, 2, 3"
]
},
{
"cell_type": "code",
"execution_count": 121,
"id": "6ab2b999",
"metadata": {},
"outputs": [
{
"output_type": "display_data",
"data": {
"text/plain": "<Figure size 1200x700 with 1 Axes>",
"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=\"243.754375pt\" version=\"1.1\" viewBox=\"0 0 424.155312 243.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-30T08:52:22.990197</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 243.754375 \nL 424.155312 243.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 206.198125 \nL 407.411562 206.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(#p4b345d5e6b)\" d=\"M 94.839063 197.839943 \nL 225.338081 197.839943 \nL 225.338081 162.647599 \nL 94.839063 162.647599 \nz\n\" style=\"fill:#1f77b4;\"/>\n </g>\n <g id=\"patch_4\">\n <path clip-path=\"url(#p4b345d5e6b)\" d=\"M 94.839063 153.849513 \nL 226.119512 153.849513 \nL 226.119512 118.657168 \nL 94.839063 118.657168 \nz\n\" style=\"fill:#1f77b4;\"/>\n </g>\n <g id=\"patch_5\">\n <path clip-path=\"url(#p4b345d5e6b)\" d=\"M 94.839063 109.859082 \nL 222.649958 109.859082 \nL 222.649958 74.666737 \nL 94.839063 74.666737 \nz\n\" style=\"fill:#1f77b4;\"/>\n </g>\n <g id=\"patch_6\">\n <path clip-path=\"url(#p4b345d5e6b)\" d=\"M 94.839063 65.868651 \nL 197.73793 65.868651 \nL 197.73793 30.676307 \nL 94.839063 30.676307 \nz\n\" style=\"fill:#1f77b4;\"/>\n </g>\n <g id=\"patch_7\">\n <path clip-path=\"url(#p4b345d5e6b)\" d=\"M 225.338081 197.839943 \nL 313.764841 197.839943 \nL 313.764841 162.647599 \nL 225.338081 162.647599 \nz\n\" style=\"fill:#ff7f0e;\"/>\n </g>\n <g id=\"patch_8\">\n <path clip-path=\"url(#p4b345d5e6b)\" d=\"M 226.119512 153.849513 \nL 313.577298 153.849513 \nL 313.577298 118.657168 \nL 226.119512 118.657168 \nz\n\" style=\"fill:#ff7f0e;\"/>\n </g>\n <g id=\"patch_9\">\n <path clip-path=\"url(#p4b345d5e6b)\" d=\"M 222.649958 109.859082 \nL 308.169794 109.859082 \nL 308.169794 74.666737 \nL 222.649958 74.666737 \nz\n\" style=\"fill:#ff7f0e;\"/>\n </g>\n <g id=\"patch_10\">\n <path clip-path=\"url(#p4b345d5e6b)\" d=\"M 197.73793 65.868651 \nL 285.195715 65.868651 \nL 285.195715 30.676307 \nL 197.73793 30.676307 \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(#p4b345d5e6b)\" d=\"M 94.839063 206.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=\"mbc941c4cbd\" 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=\"#mbc941c4cbd\" y=\"206.198125\"/>\n </g>\n </g>\n <g id=\"text_1\">\n <!-- 0 -->\n <g transform=\"translate(91.657813 220.796562)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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Z4U6Guk3AHsVMT9sTBO7iDczHqk7J+J/D88f6+RtjfwB9o6WoT0hWkC8AZpJJotSMMe9wG+BywLHF4hr8HAHaQfyZA+tB4CHif9+Fic9AV9I9LQteUeJwUs8iPDvUsaGa7bkPQN4FTa+iyaSvpC+hKpU/b1SF/kBewGjJW0dUS8VyG7y4A9cuvPkK7ZZNIXqWWBDUhfKspNpW20lgNJ1w2qj6T3cv1HV5ukxZm/T7B887lLgaOy5V0kLRMRb9bJrzdwDbBXbvMs0vWcRPqhsgJpmOMVSYGSik30JH0+K0O+mdVTpOv5Dmn0pPWyqReVh/luNpGe891IX8LuJwVnRVsgp2QgqZYYwBTgUVLtg2mkazAc2JL0OJYGbpW0fUSU/9vbdvJOXu+IeETSeFJHwUNInQXXfH1K+giwdbY6A7i8Vvoq7iA9brKyr5Qt38CC9/V865KOY/4mQjOBu4H/kvp/2gFYivTaPRb4sKS9I/tWXcdvgCOy5f8A/yJdw7XoBk38Cn6v6k1bbZhppPvxuSzPvqRBKbYk3RcDgd9L+iAi/tBgWY8HfpytPkv6DHqP9N5XbYCLnUjBvt6k53N8Vp7hpB+ufUijVl0taf2IeL6RsjRgEPBn0mv2PdJn7Iuk9+AdgFJNnYNJwe+TK+QBgKS9SO8JvbNNc0hBrKez82xNurYXAMcUVH5Iz13Qdm98h4L621OqafkX0vtEyXukx/Vids6VSe8zS5Pun97UVthzLelzpPeh0mfFDFL/P5NIr9u1srL3Id3T4yVtHhGvV8lvM+A20vNVcj/pPaFflsfqwAmSptR5nF1O0nak4HNpxMEPSEGRp7PlYaTg2mLAR4B/StoqIh5vcVGHlq2/k19p8nt/p2S1nm6i7XsbWbkmkL7/DSRd241I92mnvq8o1bT9em7Tm6T
},
"metadata": {
"needs_background": "light"
}
}
],
"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",
"\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",
"\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",
"best_top_1_results = best_top_1_results[::-1]\n",
"best_labels = best_labels[::-1]\n",
"\n",
"fig = plt.figure(figsize=(6, 3.5))\n",
"fig.set_dpi(fig_dpi)\n",
"\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",
"plt.xlabel('% Test Accuracy')\n",
"plt.ylabel('Learning Schedule Policies')\n",
"\n",
"plt.xticks(np.linspace(0, 100, 11))\n",
"plt.xlim(0, 100)\n",
"\n",
"plt.tight_layout()\n",
"plt.savefig('best-barh-50e.png')\n",
"\n",
"plt.show()"
]
},
{
"cell_type": "code",
"execution_count": null,
"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
}