2021-04-06 21:14:45 +01:00
{
"cells": [
{
"cell_type": "code",
2021-04-30 19:47:47 +01:00
"execution_count": 173,
2021-04-10 12:20:26 +01:00
"id": "3c568ab9",
2021-04-06 21:14:45 +01:00
"metadata": {},
"outputs": [],
"source": [
"import numpy as np\n",
"import matplotlib as mpl\n",
2021-04-27 23:46:23 +01:00
"from matplotlib import pyplot as plt\n",
"\n",
"fig_dpi = 200\n",
"lw = 3"
2021-04-06 21:14:45 +01:00
]
},
{
"cell_type": "markdown",
2021-04-10 12:20:26 +01:00
"id": "7ecc547f",
2021-04-06 21:14:45 +01:00
"metadata": {},
"source": [
"# Fixed Learning Rate\n",
2021-04-09 13:04:40 +01:00
"80/10/10 Split, 100/200 epochs\n",
2021-04-06 21:14:45 +01:00
"\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-30 19:47:47 +01:00
"execution_count": 174,
2021-04-10 12:20:26 +01:00
"id": "1b2471d2",
2021-04-06 21:14:45 +01:00
"metadata": {},
"outputs": [],
"source": [
2021-04-09 13:04:40 +01:00
"fixed_results_200e = np.array([\n",
2021-04-06 21:14:45 +01:00
" [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",
2021-04-30 19:47:47 +01:00
" [2e-3, 28.66, 53.86, 3.94, 33.03],\n",
2021-04-09 13:04:40 +01:00
" [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",
2021-04-30 19:47:47 +01:00
" [1e-1, 0.80, 2.53, 5.28, 0.55]\n",
2021-04-06 21:14:45 +01:00
"])"
]
},
2021-04-10 12:20:26 +01:00
{
"cell_type": "markdown",
"id": "ca34155e",
"metadata": {},
"source": [
"## 100 Epochs"
]
},
2021-04-06 21:14:45 +01:00
{
"cell_type": "code",
2021-04-30 19:47:47 +01:00
"execution_count": 190,
2021-04-10 12:20:26 +01:00
"id": "c664a31c",
"metadata": {},
"outputs": [
{
2021-04-27 23:46:23 +01:00
"output_type": "display_data",
2021-04-10 12:20:26 +01:00
"data": {
2021-04-30 19:47:47 +01:00
"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:37.294024</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(#pc4f7fd84b2)\" 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=\"mc52de0b2c7\" 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=\"#mc52de0b2c7\" 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": "iVB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fMx3bbKG8+ji31G4GbnOTtgLG5GcvuzgWBqw0lXMR42p4uIu0EcD9wDwXx6qZykiy+JokmfJUs5DmKkZA8CSgMqWLzHT/PYwA3GXrIcaPj/uBv03ltwjk643xo/0fMloTvLXo3mB6vGSgaA7Pwb6m8iZ5SRtBRuCsgeO4aK0A7sKYA8CebpOrc8eWNiHTe5kODMmcPvN76cPzM5+Dbs8pf7xGQCOM3iT2tI9mOl4a48ex/fgnbsqJwQjs7Om+B2q6SFcMI3C3pzsCFHdTprkF/TLwhIs0TUyfrcum9G1yco7Zyk4yldc3B+VMNpWz01XdMAKfp8loeU4Fmrop737gVeA6D49ZHfjB9LhfWTxXrtr+Jrg67+znNM4t1PY6rwfqZEqvMIIo8/ncykNdHOksvi8p2FpWyfpdeiPOrbMTPJTZL1MdPyTrd3E523ltfs6a3GmhNrfObvCQLgKYYHu/3H2fRQL/Z3rvzwCxFl//LOeImzxPmPKcw+ix5Op/c9tM75mr//UPmo4fwc3/L9M5MBxoktP3SG5y88ct1ysgN7nJLW/cMFqd7f/M/gbCMh2vinN363peyjMHwRs8/SP3Uo65S/EVLHQndVNONVM5SRbzeP2BkSlNlsDFD+/LbaayZwXh9TZ373zHS9r/mdK6/VHrw2P3tfrjE3g803lR30PaxqYflRp4zE26hEzv5X/9/F5Wy1T+ZGCMl9urOXiNXjWlPWs+h4FvTce2AVFuynjdlG4uEOLlMSeZ0r/i4nhtnL9H+ngoqzbGrMfm16yNH94H82e2bzbLMA+P2YP3Ls/m921
2021-04-10 12:20:26 +01:00
},
"metadata": {
"needs_background": "light"
2021-04-27 23:46:23 +01:00
}
2021-04-10 12:20:26 +01:00
}
],
"source": [
2021-04-30 19:47:47 +01:00
"fig = plt.figure(figsize=(5, 3))\n",
2021-04-27 23:46:23 +01:00
"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-30 19:47:47 +01:00
"plt.xlim(7e-7, 2e-1)\n",
2021-04-10 12:20:26 +01:00
"\n",
2021-04-27 23:46:23 +01:00
"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",
2021-04-27 23:46:23 +01:00
"\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-30 19:47:47 +01:00
"execution_count": 176,
2021-04-10 12:20:26 +01:00
"id": "bf5fa35b",
"metadata": {},
"outputs": [
{
2021-04-27 23:46:23 +01:00
"output_type": "display_data",
2021-04-10 12:20:26 +01:00
"data": {
2021-04-27 23:46:23 +01:00
"text/plain": "<Figure size 1000x800 with 1 Axes>",
2021-04-30 19:47:47 +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-29T18:22:52.385584</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(#p0188de26b9)\" 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=\"m4f3b640150\" 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=\"#m4f3b640150\" 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+AADI/0lEQVR4nOzdd5xcVf3/8fdnN2U3vTeSkAaEEmpCQsAQOgooFrolKvoFlK9iw/ozfvWrX0BFFMSCCipgBRVEikgIJCQktIQSIJuEVEg2vexm2/n9ce+Qu5uZe+/MTp/X8/GYx87snDlzZubOzP3MPefzMeecAAAAAABAeqoKPQAAAAAAAEoRATUAAAAAABkgoAYAAAAAIAME1AAAAAAAZICAGgAAAACADBBQAwAAAACQAQJqAAAAAAAyQEANAAAAAEAGCKgBAAAAAMgAATUAAAAAABkgoAYAAAAAIAME1AAAAAAAZICAGgAAAACADBBQAwAAAACQAQJqAAAAAAAyQEANAAAAAEAGCKgBAAAAAMgAATUAAAAAABkgoAYAAAAAIAME1ECAmbnEqdBj6Qwzmxl4LHMKPZ58MLM5gcc8M0Wb2YE2s7N0v2MCfa7KRp+5Yma3B8Y6q9DjQWkzszPM7E9m9oaZNZTK+yAfzGxV4PkYU+jx5FolfueUm1x8PwKVgoAaZaNDQJXOaWahx16MzGyAme0NPE8f60RfNwT6WWFmls2xAmF4v2efmX1P0sOSLpA0WlJNYUeUPR1+eErnNKvQYy8XZjaLH2iQDx1+FE92ajGzLWb2spndaWYXm1m3Qo8bxYWAGkBSzrktku4P/OvDmfRjZtWSLgv867fOuZKeAVAMONqMQjGzEyV9OfCvlyT9XtIt/umOQowLAHKgWlJ/SYdKulTS3ZJeNbN35HsgHX5ouj3f94/UuhR6AECOLJL0dMy263I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"source": [
2021-04-27 23:46:23 +01:00
"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",
2021-04-27 23:46:23 +01:00
"\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-30 19:47:47 +01:00
"execution_count": 177,
2021-04-10 12:20:26 +01:00
"id": "9f4a799f",
2021-04-06 21:14:45 +01:00
"metadata": {},
"outputs": [
{
2021-04-27 23:46:23 +01:00
"output_type": "display_data",
2021-04-06 21:14:45 +01:00
"data": {
2021-04-27 23:46:23 +01:00
"text/plain": "<Figure size 432x288 with 1 Axes>",
2021-04-30 19:47:47 +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-29T18:22:53.132741</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(#p9f20a4fa5f)\" 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=\"mf86a6cbe1d\" 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=\"#mf86a6cbe1d\" 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
2021-04-27 23:46:23 +01:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAX4AAAEaCAYAAAAWvzywAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAAsTAAALEwEAmpwYAABk10lEQVR4nO2dZ3hURReA35NGAgkkkFADSehCIAmh9y6gIoqIgAX0E0UFFLGiiB0VFEEFG0VFwK4gqLTQpYTea0IvCYEkQNrufD/uJgZI2ZTdTZn3ee6ze+dOOXN399zZM2fOiFIKjUaj0ZQenBwtgEaj0Wjsi1b8Go1GU8rQil+j0WhKGVrxazQaTSlDK36NRqMpZWjFr9FoNKUMrfg1RRIRGSEi50QkUUQq2bCdRBGpXch1dhaRk4VZZ2EjIkNE5B9Hy6FxDFrxF0NEJEJE4kSkjKNlsQUi4gp8CPRUSnkqpWILoc4oEblmUfTpR3VL/UcLLnWeZFEiUteebd6IUmquUqqnLeq+4V6fFZHZIuJpZdmhIrLWFnJp/kMr/mKGiAQCHQAF9LVz2y52aqoK4A7syWtBMcjue32HRdGnH6cLJGURJZd7YC/uUEp5AqFAGPCSY8XRZMbRXw5N3nkQ+BeYDTyU+YKI1BSRX0TkgojEisgnma49KiL7RCRBRPaKSDNL+nWjT8vo7C3L+84iclJEXhCRs8AsEfERkUWWNuIs7/0zla8oIrNE5LTl+m+W9N0ickemfK4iEiMiYTf0oT5wwHJ6SURWWNLbishmEblseW2bqUyEiLwtIuuAq4DVppv0/ouIm4hsF5GRlnRnEVknIuMt59VF5GdLv4+JyKhMdXhY7luciOwFWljb/g2ylBGRSSJy3GLmmiEiHpZrud33m+6BpW+Pi8ghEbkkIp+KiFjyXzeyziWvs4hMtnxex0TkKUv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JVsiogIsMxlr7j4eERXrOm1WtGrsNsNuPkVLqmMnSfSwe6zyWfgvb34MGDMUopv5su2DomBEZQqxj+CyZ26YbrcbnVER4ervLLypUr8122uKL7XDrQfS75FLS/wBbloFg9vYGtSqlzlvNzIlINwPJ63g4yaDQajcaCPRT/IP4z84ARXjU9sNhDGJH1NBqNRmMnbKr4RaQc0IPrl+dPxIjbcQgjvOtEW8qg0Wg0muux6eSuUuoKxgYSmdNiMbx8CkRqaionT54kKSkpx3wVKlRg3759BW2uWFEa+uzu7o6/vz+urq6OFkWjKXYU27DMJ0+exMvLi8DAQIzAfFmTkJCAl5eXHSVzPCW9z0opYmNjOXnyJEFBQY4WR6MpdhRbv6ikpCQqVaqUo9LXlExEhEqVKuX6b0/jQNZOgWM3ROY4ttpI1zicYqv4Aa30SzH6sy/i1GgGPw79T/kfW22c12jmSKk0FoqtqcfRxMbG0q2bMVVx9uxZnJ2d8fMz1kls2rQJNze3PNc5btw4vvnmG+Li4khMTMwxb79+/Th79iz//vtv3oXXaGxNUEcYMBvmDQKvanDtonEe1DG3kho7UKxH/NYyY9UR1h+5fs+O9UdimLEqv9vQQqVKldi+fTvbt2/n8ccf55lnnsk4z4/SB7jjjjvYtGlTrvkuXbpEZGQkly9f5ujRo/lqyxrS0rLavlejsRKfIEhLhthDEDJYK/0iRKlQ/E39K/DU99sylP/6IzE89f02mvpXyKVk3li+fDlhYWE0adKEhx9+mOTkZAACAwN5/vnnadKkCS1btuTw4cNZlm/dujXVqlXLtZ1ffvmFO+64g/vuu4/58+dnpB8+fJju3bvTtm1bmjVrxpEjxoPtvffeo0mTJoSEhPDii8Ze1J07d2bLli0AxMTEEBgYCMDs2bPp27cvXbt2pVu3biQmJtKtWzeaNWtGkyZN+P33/5ZdfPPNNzRt2pSQkBA
2021-04-06 21:14:45 +01:00
},
"metadata": {
"needs_background": "light"
2021-04-27 23:46:23 +01:00
}
2021-04-06 21:14:45 +01:00
}
],
"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",
2021-04-06 21:14:45 +01:00
"\n",
"plt.ylim(0)\n",
"\n",
2021-04-27 23:46:23 +01:00
"plt.title('Accuracy for Fixed Learning Rates')\n",
2021-04-06 21:14:45 +01:00
"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-30 19:47:47 +01:00
"execution_count": 178,
2021-04-10 12:20:26 +01:00
"id": "cdf18f4a",
2021-04-06 21:14:45 +01:00
"metadata": {},
"outputs": [
{
2021-04-27 23:46:23 +01:00
"output_type": "display_data",
2021-04-06 21:14:45 +01:00
"data": {
2021-04-27 23:46:23 +01:00
"text/plain": "<Figure size 432x288 with 1 Axes>",
2021-04-30 19:47:47 +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-29T18:22:53.980029</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(#p6e15194d13)\" 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=\"m62aa41447c\" 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=\"#m62aa41447c\" 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=\"#D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XC5C9iJ83l6242rrLErq+onOJ/HX9C8z3d978tYYImIlAALgJ+o6pYmli9sxG04McaYmCQiP8RpwJ7Y4MLmBHYGYYyJKSLSU0TOdKt3TsGp4ns+0nG1RtFwBaMxxoRSe5yeQwNwugjPBx6IZECtlVUxGWOMCcqqmIwxxgRlCcIYY0xQMdUGkZ6erv3792/WukeOHKFTp04NLxhDrMyxr62VF6zMTbVixYoCVe0WbF5MJYj+/fuzfPnyZq2bnZ3NpEmTQhtQlLMyx762Vl6wMjeViNR5qxWrYjLGGBOUJQhjjDFBWYIwxhgTlCUIY4wxQVmCMMaYVujB93JZlFtwwrRFuQU8+F5uyPbRphNEON7gaNMWy2xMLBqWmcKMp3KO/z8vyi1gxlM5DMtMCdk+2nSCCMcbHG3aYpmNiUVZ/nRmXjmSG+et5P9WH2PGUznMvHIkWf7GDubYsJi6DqKpat7gHzy+giFpyrqFK/jhpIEcq6ji3Y2hHNAsunzvS/35wRMrmNgLFn0Q+g+VMSY8uiUnUlWtLNldxQ0T+4X8/9jTBCEi24DDQBVQqapjas2/CrgVZ/i+w8APVXV1Y9YNlSx/OqUVVSzZ49y08C9vbPJiN1Hp5S0wY/IgSw7GtEJLtx5k2mNLKK2sZmJmPM8u38nZJ3drdWcQk1W1oI55W4GJqlooIhfgjK87vpHrhsSi3AI6to9nuE9ZfUD4xfmnMCwz1ctdRtyanUX88dWNlFZU8fAHW8jy+8gaZEnCmNbilTW7+cn8HKpV+celI0gp/oz2fYaGvJopolVMqho4Ru9iThxo3HM19e8Pfnc05TvWevIGR5tFuQXc+/ZnPDptDPPeXsmrWyv43tzlPDptTMyW2ZhY8uiHW7n7lfX
2021-04-06 21:14:45 +01:00
},
"metadata": {
"needs_background": "light"
2021-04-27 23:46:23 +01:00
}
2021-04-06 21:14:45 +01:00
}
],
"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",
2021-04-06 21:14:45 +01:00
"\n",
"# plt.ylim(0)\n",
"\n",
2021-04-07 22:40:14 +01:00
"plt.title('Final Validation Loss for Fixed Learning Rates')\n",
2021-04-06 21:14:45 +01:00
"plt.ylabel('Loss')\n",
"plt.xlabel('Learning Rate')\n",
"\n",
"# plt.legend()\n",
"plt.xscale('log')\n",
"plt.grid()\n",
"plt.show()"
]
},
2021-04-07 22:40:14 +01:00
{
"cell_type": "markdown",
2021-04-10 12:20:26 +01:00
"id": "01a797d7",
2021-04-07 22:40:14 +01:00
"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-30 19:47:47 +01:00
"execution_count": 179,
2021-04-10 12:20:26 +01:00
"id": "a9023eeb",
2021-04-07 22:40:14 +01:00
"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",
2021-04-07 22:40:14 +01:00
" [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-30 19:47:47 +01:00
"execution_count": 194,
2021-04-10 12:20:26 +01:00
"id": "9b32b8fe",
2021-04-07 22:40:14 +01:00
"metadata": {},
"outputs": [
{
2021-04-27 23:46:23 +01:00
"output_type": "display_data",
2021-04-07 22:40:14 +01:00
"data": {
2021-04-27 23:46:23 +01:00
"text/plain": "<Figure size 1000x800 with 1 Axes>",
2021-04-30 19:47:47 +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-30T08:55:01.470355</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(#p3ae14cefeb)\" 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=\"md6a0bbbf30\" 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=\"#md6a0bbbf30\" 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(#p3ae14cefeb)\" 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=\"#md6a0bbbf30\" 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\"
2021-04-29 00:53:46 +01:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA9QAAAMMCAYAAACyue/GAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAB7CAAAewgFu0HU+AADvrElEQVR4nOzdeZhcVZ3/8c+3l3R3Ons6CyQhgRAIS9iRPQQR3Ecd9xUURkVhAJdBRx3Rn46ijoKOMqOguC/jMs4oMggSkFUgLGEJCYFshCydfekl3f39/XFudd2qrj1dS3e/X89TT92699xbp6tvV9enzrnnmLsLAAAAAAAUp67aFQAAAAAAYCgiUAMAAAAAUAICNQAAAAAAJSBQAwAAAABQAgI1AAAAAAAlIFADAAAAAFACAjUAAAAAACUgUAMAAAAAUAICNQAAAAAAJSBQAwAAAABQAgI1AAAAAAAlIFADAAAAAFACAjUAAAAAACUgUAMAAAAAUAICNQAAAAAAJSBQAwAAAABQAgI1AAAAAAAlIFADAAAAAFACAjUAAAAAACUgUAPAEGBmk83ss2b2gJltM7NeM/PodmG16wcAQ0ns/dOrXRcAQ1tDtSsADCVm9hNJ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/ynDNsaJN0dO85ehQDRmKHsKEmvlfS7DNvmxI6xqsDXZFVsnzkFlNmn8MH6H5TWmiepKe3xlxQC+Lgsx7XoZ4m3mJ1Zztdb4UPjLiW/zc7Xontk7Pl2Sxq7n+fghbHj3ZSn7Cglg7MrBLYB35ZLOl8hICbKPZzp3InKLk77XfZJ+nR6+fTfZRE/X3or4z0KreDN+/m69R+ziH0+H9vvRYUPvANaoKNzdHus7FuyHO+mWJmu6P4n6ee3Qtj
2021-04-07 22:40:14 +01:00
},
"metadata": {
"needs_background": "light"
2021-04-27 23:46:23 +01:00
}
2021-04-07 22:40:14 +01:00
}
],
"source": [
2021-04-27 23:46:23 +01:00
"fig = plt.figure(figsize=(5, 4))\n",
"fig.set_dpi(fig_dpi)\n",
2021-04-07 22:40:14 +01:00
"\n",
2021-04-27 23:46:23 +01:00
"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",
2021-04-07 22:40:14 +01:00
"\n",
2021-04-27 23:46:23 +01:00
"plt.title('Accuracy for Step-Down Learning Rates')\n",
2021-04-07 22:40:14 +01:00
"plt.ylabel('% Accuracy')\n",
2021-04-27 23:46:23 +01:00
"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",
2021-04-27 23:46:23 +01:00
"\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-30 19:47:47 +01:00
"execution_count": 181,
2021-04-10 12:20:26 +01:00
"id": "69c98182",
2021-04-09 13:04:40 +01:00
"metadata": {},
"outputs": [
{
2021-04-27 23:46:23 +01:00
"output_type": "display_data",
2021-04-09 13:04:40 +01:00
"data": {
2021-04-27 23:46:23 +01:00
"text/plain": "<Figure size 432x288 with 1 Axes>",
2021-04-30 19:47:47 +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-29T18:22:54.863530</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(#pcdf3da6a21)\" 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=\"m7742847ea4\" 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=\"#m7742847ea4\" 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(#pcdf3da6a21)\" 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=\"#m7742847ea4\" 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
2021-04-29 00:53:46 +01:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAEWCAYAAAB8LwAVAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAAsTAAALEwEAmpwYAAA9yUlEQVR4nO3dd3wUdf7H8dcnEGroXUB6bwkgKFjAinoKIiDi2btwcvbTn955lvO8swvWU/EURAKI2CuIUtSEJHSU0BJ6aCFA+uf3xwzegptkE3Yzu8nn+XjsI5uZ2Zn3zs7uZ+Y7TVQVY4wx5lhRXgcwxhgTnqxAGGOM8csKhDHGGL+sQBhjjPHLCoQxxhi/rEAYY4zxywpECUQkS0TaB2E8D4vIu8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7l7E2Tl+Ec6hz7kBvod9OAVhuYhk4czfD4B/uf39zdOrcH4MV7nvZSZuE4vrR5x9UhnA48AoVd1dTIZT3Gln4jQP1QVOUtXlgbxHVf0F50fne/f/TGA9sNBd6Siryzn6801V1TScLeYHcApBGs6PZ5SqHgBuxyloe4FxOE03IefOi5HA9Tif6R9xdsjnlGI0zwEXiEhvnOLcF2cL/ROcFTdfTwAPus1Jdxc3X9zHnThbgntwtuxuLfWbDJAc3cxmjAkXInINzkEBp3qdpbITkR+BV1T1rRIHrkBsC8IYY44hImeISHO3ielqoDfOFmGl4vXZh8YYE4668L9ziNbjNO1t8zZS+bMmJmOMMX5ZE5Mxxhi/KlQTU+PGjbVt27Zleu3BgwepXbt2cAOVk0jNHqm5wbJ7xbIHX2JiYoZ7YufvVKgC0bZ
2021-04-09 13:04:40 +01:00
},
"metadata": {
"needs_background": "light"
2021-04-27 23:46:23 +01:00
}
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",
2021-04-27 23:46:23 +01:00
"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-30 19:47:47 +01:00
"execution_count": 182,
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-30 19:47:47 +01:00
"execution_count": 195,
2021-04-10 12:20:26 +01:00
"id": "959af09b",
2021-04-09 13:04:40 +01:00
"metadata": {},
"outputs": [
{
2021-04-27 23:46:23 +01:00
"output_type": "display_data",
2021-04-09 13:04:40 +01:00
"data": {
2021-04-30 19:47:47 +01:00
"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:35.537854</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(#p0af61e461c)\" 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=\"me95578779f\" 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=\"#me95578779f\" 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": "iVBORw0KGgoAAAANSUhEUgAAA9QAAAJECAYAAAD3xWxzAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAB7CAAAewgFu0HU+AAEAAElEQVR4nOzdd3gU1f7H8fdJSAIklNClSBN+gqJUG9IUxY4KqCgoClbUi1ev7VpQr1cs9yL2DgIRQQVELyoCAqJIkWKhKkQQlF6EUJPz+2N2N5NkN1uyuyl8Xs+zT2ZnzjlzZmd3st89Z84x1lpEREREREREJDwJxV0BERERERERkdJIAbWIiIiIiIhIBBRQi4iIiIiIiERAAbWIiIiIiIhIBBRQi4iIiIiIiERAAbWIiIiIiIhIBBRQi4iIiIiIiERAAbWIiIiIiIhIBBRQi4iIiIiIiERAAbWIiIiIiIhIBBRQi4iIiIiIiERAAbWIiIiIiIhIBBRQi4iIiIiIiERAAbWIiIiIiIhIBBRQi4iIiIiIiERAAbWIiIiIiIhIBBRQi4iIiIiIiERAAbWIiIiIiIhIBBRQi4iIiIiIiERAAbWISAlljKlujHnUGDPfGLPTGJNtjLGex4Dirp9IaWOMyXR9hhrFaZ9dXfucFY99SnQZYwa4zuGo4q6PiJQsCqhFgjDGjHX9I7XGmPuKu05S9hljmgDLgKHAKUBVysg12xjTKN9nKtxH1+I+BpHiki9At8VdHynbglyLs40xu4wxa4wxHxhjBhlj0oq7ziLxVia+nInEijGmEnBZvtXXFUdd5KjzOlDPs7wf+AR4DXjZ81hRTPUSKRGKo7VZRPJIAKoAxwG9gTeBdcaY/N+bYk49QaQ4lSvuCo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 +01:00
}
2021-04-09 13:04:40 +01:00
}
],
"source": [
2021-04-30 19:47:47 +01:00
"fig = plt.figure(figsize=(5, 3))\n",
2021-04-27 23:46:23 +01:00
"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-30 19:47:47 +01:00
"plt.xlim(0.65, 1)\n",
2021-04-29 00:53:46 +01:00
"plt.ylim(0, 100)\n",
2021-04-09 13:04:40 +01:00
"\n",
2021-04-27 23:46:23 +01:00
"plt.title('Accuracy for Exponential Learning Rates')\n",
2021-04-09 13:04:40 +01:00
"plt.ylabel('% Accuracy')\n",
2021-04-27 23:46:23 +01:00
"plt.xlabel('Decay Rate, λ')\n",
2021-04-07 22:40:14 +01:00
"\n",
"plt.legend()\n",
"# plt.xscale('log')\n",
"plt.grid()\n",
2021-04-27 23:46:23 +01:00
"\n",
"plt.tight_layout()\n",
"plt.savefig('exp-accuracy.png')\n",
"\n",
2021-04-07 22:40:14 +01:00
"plt.show()"
]
},
2021-04-09 13:04:40 +01:00
{
"cell_type": "code",
2021-04-30 19:47:47 +01:00
"execution_count": 184,
2021-04-10 12:20:26 +01:00
"id": "fe8641ec",
2021-04-09 13:04:40 +01:00
"metadata": {},
"outputs": [
{
2021-04-27 23:46:23 +01:00
"output_type": "display_data",
2021-04-09 13:04:40 +01:00
"data": {
2021-04-27 23:46:23 +01:00
"text/plain": "<Figure size 1000x800 with 1 Axes>",
2021-04-30 19:47:47 +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-29T18:22:55.727162</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(#p8aa803d0af)\" 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=\"mecc4a2ab6e\" 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=\"#mecc4a2ab6e\" 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(#p8aa803d0af)\" 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=\"#mecc4a2ab6e\" 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
2021-04-29 00:53:46 +01:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA+gAAAMMCAYAAADAdo1wAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAB7CAAAewgFu0HU+AADIIUlEQVR4nOzdd5wU9f3H8ffnjnJH7/VoAoII0sGKYO+xYS+oxKgpRpNoTH5RTNfExFRTULFHsfcuYkWqIB0UvaMjHe4od9/fHzPnDcvWu213+3o+HvvY2d3PfOe7u7Oz85n5zvdrzjkBAAAAAIDMyst0BQAAAAAAAAk6AAAAAABZgQQdAAAAAIAsQIIOAAAAAEAWIEEHAAAAACALkKADAAAAAJAFSNABAAAAAMgCJOgAAAAAAGQBEnQAAAAAALIACToAAAAAAFmABB0AAAAAgCxAgg4AAAAAQBYgQQcAAAAAIAuQoAMAAAAAkAVI0AEAAAAAyAIk6AAAAAAAZAESdAAAAAAAsgAJOgAAAAAAWYAEHQAAAACALECCjoSYmau8ZbouNWFmowPvZUqm65MOZjYl8J5HR4iZEIiZkKTldg+UuSIZZaaKmU0K1HVcpuuD2s3MjjezJ8zsSzMrrS2/AyAbmdm4wG9oUhqXG/O/E9nN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U8zsCOfczjDlPyzpjMDjZZJmyzsoXF/e72eAvPU/tVKV+XPLvpsycwa9TN7G6BKFHLmV96MJHp28L0qZp8sbV7hXlJgekl4NlDcxSuzoQNyUJH2+LwXKfCqO+MWB+N+Hef2f8nbCCiPMny/vaOt2VR2ljNhyQEk6gy4vOVwbiJsr6aCQmDxJN8nb0dwViF0RpX6/k3c
2021-04-09 13:04:40 +01:00
},
"metadata": {
"needs_background": "light"
2021-04-27 23:46:23 +01:00
}
2021-04-09 13:04:40 +01:00
}
],
"source": [
2021-04-27 23:46:23 +01:00
"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",
2021-04-27 23:46:23 +01:00
"plt.xlabel('Decay Rate, λ')\n",
2021-04-09 13:04:40 +01:00
"\n",
"# plt.legend()\n",
"plt.grid()\n",
2021-04-27 23:46:23 +01:00
"\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-30 19:47:47 +01:00
"execution_count": 185,
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",
2021-04-30 19:47:47 +01:00
" [1e-2, 50, 0.2, 41.82, 68.13, 2.82, 45.16],\n",
" [1e-2, 50, 0.4, 41.57, 68.19, 2.66, 46.81]\n",
2021-04-09 13:04:40 +01:00
"])"
]
},
{
"cell_type": "code",
2021-04-30 19:47:47 +01:00
"execution_count": 197,
2021-04-10 12:20:26 +01:00
"id": "5ab4be17",
2021-04-09 13:04:40 +01:00
"metadata": {},
"outputs": [
{
2021-04-27 23:46:23 +01:00
"output_type": "display_data",
2021-04-09 13:04:40 +01:00
"data": {
2021-04-27 23:46:23 +01:00
"text/plain": "<Figure size 1000x800 with 1 Axes>",
2021-04-30 19:47:47 +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-30T08:55:54.944523</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(#p652d22ed23)\" 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=\"m51d50d4e80\" 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=\"#m51d50d4e80\" 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(#p652d22ed23)\" 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=\"#m51d50d4e80\" 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(#p652d22ed23)\" d=\"M 159.233125 242.198125 \nL 159.233125 22.318125 \n\" style=\"fill:none;
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA9QAAAMMCAYAAACyue/GAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAB7CAAAewgFu0HU+AADwRklEQVR4nOzdd5xU1f3/8ddnK0vvRUBAmggooCAoKIgaNbG3aKIYMcYSW2JLNInJN/klamJN7Nhr7LGDhSoiiiiiSBOk987usuX8/rh3du8usztlp2x5Px+Pecwt5557ZvbO7HzuaeacQ0RERERERERik5HuAoiIiIiIiIjURQqoRUREREREROKggFpEREREREQkDgqoRUREREREROKggFpEREREREQkDgqoRUREREREROKggFpEREREREQkDgqoRUREREREROKggFpEREREREQkDgqoRUREREREROKggFpEREREREQkDgqoRUREREREROKggFpEREREREQkDgqoRUREREREROKggFpEREREREQkDgqoRUREREREROKggFpEREREREQkDgqoRUREREREROKggFpEREREREQkDgqoRUQEM2tjZn8ys1lmtsXMSszM+Y8L0l2+2ibw3rh0l6WuM7MLAu/n4wnMV3+jOszMRgf+hpPTXR4RkapkpbsAIlLOzJ4GfhbYdKNz7tZ0lUcaBjPbD5gKdE53WZLJzJoB5wDHAoOAdkATIB/YBHwPzAM+BT5wzq1JT0mltjGz7njXR0gP59yy9JRG6jszWwZ0q2K3A3YAm4GvgA+Bp51zm1JTOhGpTAG1SC3h/9g/tdLmcYACakm2BykPpvOB94FVQIm/7dt0FCqRzOxC4F9AyzC7m/qPbsDowDHXOef+mYryiYhEyYDm/qM7cBLwNzP7rXPuwZQWpOKNpuXOue6pPL9IbaGAWqT2OBNoXGlbPzMb6pybnY4CSf1nZp2Ao/3VQuAg59yiNBYp4czsFuBPlTbPA74BtuJ97joBg4E2gTQtk186EZFqfQAsCKwb0AoYCvTytzUBHjCzXOfcPSkun0iDp4BapPYYF1jOB/IC2xVQS7IMDixPq4fB9BFUDKbfBK5xzi2uIv1g4DTgwurydc5ZwgrZwDnnHgceT3MxpJZxzk3GCx4buqf9z8hezOxE4Am8ABvgVjN72Tm3KlWFExENSiZSK5hZD2CUv+qAawO7zzGznNSX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XTbpWlH9+1gPz8b4LduHNdtAL73OdhXezYor/PlUed+JbvP8hzShvYbcD739hRH4rgffwvvtCluDdwNiC97/7cP915QH3mllz59z/C5NXVz+vZv6mIryBXBfjXX9N/NdyEN7/Y5HES3dEr4ceDfmB949iG+V3TX9caf/vA/vmRJHfYCrW1M4BDq0ibUe8wc+uD7MvC6/WLHiH+HIgO0zaHOBE4NUw+7oH8lgW5XuyLHBM9yjSFOH9wPklYJXS5VZa/zteAN68inzNfy3rA/mPTOb7jffjJlRjUErkGt0DAufbCTSr4TV4QSC/xyOkzaE8cHZ4P9yODpPuWLwxAELpPg937fhpJ1f6W5YCN1dOX/lvGcPreyKQv8MLIk8GGtXwfau29sVP83+BdCXAb6lUIwfsh/cj3QEFgfQXVJHn44E0ofR/BnIqpRuAd+MrlPY2vFrGPcAlYcpxhH89hdKfX83rui+Qrhi4Kkx+vanY+mIbVX+eI16D/rX3TSDdD8CIMOnO99+Xwmj+RjH8vbtXuo7CvpYo8mlS6XW8DfQMk655pfd5NdCiijyv89/DttWcdxTeDcRQfj+vJm3wGivyn/8NNK2ULjv0d6diDXXounwcaF3pmMbAs4G0O4AmVZRjdCDd5Cj+LoV43x+LgWFh0p7pX//RXONPBdLlE6b1EN73f+g9DX5
2021-04-09 13:04:40 +01:00
},
"metadata": {
"needs_background": "light"
2021-04-27 23:46:23 +01:00
}
2021-04-09 13:04:40 +01:00
}
],
"source": [
2021-04-27 23:46:23 +01:00
"fig = plt.figure(figsize=(5, 4))\n",
"fig.set_dpi(fig_dpi)\n",
2021-04-09 13:04:40 +01:00
"\n",
2021-04-27 23:46:23 +01:00
"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",
2021-04-30 19:47:47 +01:00
"plt.xlim(0, 0.5)\n",
2021-04-27 23:46:23 +01:00
"\n",
"plt.title('Accuracy for Sigmoid Learning Rates')\n",
2021-04-09 13:04:40 +01:00
"plt.ylabel('% Accuracy')\n",
2021-04-27 23:46:23 +01:00
"plt.xlabel('Gamma, γ ')\n",
2021-04-09 13:04:40 +01:00
"\n",
"plt.legend()\n",
"# plt.xscale('log')\n",
"plt.grid()\n",
2021-04-27 23:46:23 +01:00
"\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-30 19:47:47 +01:00
"execution_count": 187,
2021-04-10 12:20:26 +01:00
"id": "49f5ca1a",
2021-04-09 13:04:40 +01:00
"metadata": {},
"outputs": [
{
2021-04-27 23:46:23 +01:00
"output_type": "display_data",
2021-04-09 13:04:40 +01:00
"data": {
2021-04-27 23:46:23 +01:00
"text/plain": "<Figure size 432x288 with 1 Axes>",
2021-04-30 19:47:47 +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-29T18:22:56.414840</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(#p402f8dc898)\" d=\"M 85.652841 239.758125 \nL 85.652841 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=\"m22ec388ba6\" style=\"stroke:#000000;stroke-width:0.8;\"/>\n </defs>\n <g>\n <use style=\"stroke:#000000;stroke-width:0.8;\" x=\"85.652841\" xlink:href=\"#m22ec388ba6\" y=\"239.758125\"/>\n </g>\n </g>\n <g id=\"text_1\">\n <!-- 0.05 -->\n <g transform=\"translate(74.520028 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(#p402f8dc898)\" d=\"M 126.234659 239.758125 \nL 126.234659 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=\"126.234659\" xlink:href=\"#m22ec388ba6\" y=\"239.758125\"/>\n </g>\n </g>\n <g id=\"text_2\">\n <!-- 0.10 -->\n <g transform=\"translate(115.101847 254.356562)scale(0.1 -0.1)\">\n <defs>\n <path d=\"M 7
"image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X5HRGS1l30/A7yA0zm6w93+bh/j8uZBnA9M7eMTVf0Ip1/gdZxfhlk4o7vASWZP4fSb7MJpJvm9u+5mYKfbJDADuNGXANwvh5twOsMP47T7X6aqFT6+hkKchJAnIqU45/dN4H+9HGsDzvma5762Upz26XIfj1XX9Th9M3vdY/7CPX/ejjsTmOse9xinb4Lx9n+zEqejfI67j604fQvNfc82i1sL+A7OOT+CU7tcSePO6++B6W6ivx+4ASjBeb+9XKfsL4Hn3Oak7zZ0XnA6qms7wffj1HB/2rhX6D/idpAYY0KcWwsrxGnK2BHkcNoMtwacD9yoqguDHU8osRqEMSFMRC5zm//icIa55uGMlDLNICIXi0iy25RT22fgrZmvXbMEYUxouwKnSWgvztDm69Sq/f4wBtjGv5oJr1TVkw1v0v5YE5MxxhivrAZhjDHGq4BNgCUi6TgjblJxhrM9qap/qlOmI85IlyycES7fU9X17rqdOKMCqoEqVR15umOmpKRoZmamH19F0x0/fpy4uLhgh9GgUI8x1OOD0I8x1OMDi9EfmhPfqlWrDrsXbX5ToC7RBrrjzm+DM054C86UyZ5lfo8z1A5gIPCxx7qdQEpjjjlixAgNFQsXLgx2CKcV6jGGenyqoR9jqMenajH6Q3PiA1ZqS0+1oar7VHW1+7wEZwKrupf1DwI+cct8iXPRVSrGGGOCrkU6qUUkE+diqcGqWuyx/L9xZry8V0RG4Vzpea6qrhKRHTgXkSjwf6r6ZD37no5z6Tupqakj5s2bF9gX46PS0lLi4xs7rVDLCvUYQz0+CP0YQz0+sBj
2021-04-09 13:04:40 +01:00
},
"metadata": {
"needs_background": "light"
2021-04-27 23:46:23 +01:00
}
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",
2021-04-27 23:46:23 +01:00
"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-30 19:47:47 +01:00
"execution_count": 189,
2021-04-10 12:20:26 +01:00
"id": "6ab2b999",
2021-04-09 13:04:40 +01:00
"metadata": {},
"outputs": [
{
2021-04-27 23:46:23 +01:00
"output_type": "display_data",
2021-04-09 13:04:40 +01:00
"data": {
2021-04-30 19:47:47 +01:00
"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:59.477838</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(#p4c52edb1b8)\" d=\"M 94.839063 197.839943 \nL 241.560594 197.839943 \nL 241.560594 162.647599 \nL 94.839063 162.647599 \nz\n\" style=\"fill:#1f77b4;\"/>\n </g>\n <g id=\"patch_4\">\n <path clip-path=\"url(#p4c52edb1b8)\" d=\"M 94.839063 153.849513 \nL 233.65251 153.849513 \nL 233.65251 118.657168 \nL 94.839063 118.657168 \nz\n\" style=\"fill:#1f77b4;\"/>\n </g>\n <g id=\"patch_5\">\n <path clip-path=\"url(#p4c52edb1b8)\" d=\"M 94.839063 109.859082 \nL 237.715952 109.859082 \nL 237.715952 74.666737 \nL 94.839063 74.666737 \nz\n\" style=\"fill:#1f77b4;\"/>\n </g>\n <g id=\"patch_6\">\n <path clip-path=\"url(#p4c52edb1b8)\" d=\"M 94.839063 65.868651 \nL 205.864814 65.868651 \nL 205.864814 30.676307 \nL 94.839063 30.676307 \nz\n\" style=\"fill:#1f77b4;\"/>\n </g>\n <g id=\"patch_7\">\n <path clip-path=\"url(#p4c52edb1b8)\" d=\"M 241.560594 197.839943 \nL 322.6419 197.839943 \nL 322.6419 162.647599 \nL 241.560594 162.647599 \nz\n\" style=\"fill:#ff7f0e;\"/>\n </g>\n <g id=\"patch_8\">\n <path clip-path=\"url(#p4c52edb1b8)\" d=\"M 233.65251 153.849513 \nL 319.359889 153.849513 \nL 319.359889 118.657168 \nL 233.65251 118.657168 \nz\n\" style=\"fill:#ff7f0e;\"/>\n </g>\n <g id=\"patch_9\">\n <path clip-path=\"url(#p4c52edb1b8)\" d=\"M 237.715952 109.859082 \nL 318.984802 109.859082 \nL 318.984802 74.666737 \nL 237.715952 74.666737 \nz\n\" style=\"fill:#ff7f0e;\"/>\n </g>\n <g id=\"patch_10\">\n <path clip-path=\"url(#p4c52edb1b8)\" d=\"M 205.864814 65.868651 \nL 292.353625 65.868651 \nL 292.353625 30.676307 \nL 205.864814 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(#p4c52edb1b8)\" 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=\"m779e20547c\" 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=\"#m779e20547c\" 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 2525 4250 2034 4250 \nz\nM 2034 4750 \nQ 2819 4750 3233 4129 \nQ 3647 3509 3647 2328 \nQ 3647 1150 3233 529
"image/png": "iVBORw0KGgoAAAANSUhEUgAABJsAAAKoCAYAAADQyf4kAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjQuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/Z1A+gAAAACXBIWXMAAB7CAAAewgFu0HU+AADT1UlEQVR4nOzdd7gcVf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g79zm2aTrOZn0Q2Ul0jDHK5MCJRWb6En6XFaGfDOrp0nX823S6EkbZFMvKg/z3WwiPee7k76ETSQFZ0VbIKdkIKmWGMBU4DFS7YPppGuwOrAV6XEsC9wqaYeIKP+3t+3knbzeEfGopPtIHQUPIXUWXPP1KelDwDbZ6kzg8lrpq7iD9LjJyr5KtnwDC9/XC6xLOp4FmwjNAu4G/kvq/2lHYBnSa/c44IOS9onsW3UdvwaOzJb/DfyTdA3XoRs08Sv4vao3bbVhppPux+eyPPuSBqXYinRfDAR+L+n9iPhDg2U9AfhRtvos6TPoXdJ7X7UBLnYmBft6k57P+7LyrE764dqHNGrV1ZI2jIhJjZSlAYOAP5Nes++SPmNfIL0H7wiUauocQgp+n1IhDwAk7U16T+idbZpLCmL9JzvPNqRrewFwbEHlh/TcBW33xrcpqL89pZqWfyG9T5S8S3pcL2TnHEZ6n1mWdP/0prbCnmtJnyW9D5U+K2aS+v+ZTHrdrpOVvQ/pnr5P0pYR8VqV/LYAbiM9XyUTSe8J/bI81gROlDS1zuPscpK2JwWfSyMOvk8KivwnWx5OCq4tAXwI+IekrSPiiRYXdWjZ+tv5lSa/93dKVuvpJtq+t5GVazzp+99A0rXdhHSfdur7ilJN26/lNr1
2021-04-09 13:04:40 +01:00
},
"metadata": {
"needs_background": "light"
2021-04-27 23:46:23 +01:00
}
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",
2021-04-27 23:46:23 +01:00
"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",
2021-04-27 23:46:23 +01:00
"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",
2021-04-27 23:46:23 +01:00
"best_labels.append(f'Sigmoid\\n{b_sig[0]}, S: {b_sig[1]},\\nγ : {b_sig[2]}')\n",
"\n",
2021-04-30 19:47:47 +01:00
"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",
2021-04-27 23:46:23 +01:00
"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",
2021-04-27 23:46:23 +01:00
"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",
2021-04-27 23:46:23 +01:00
"\n",
2021-04-29 00:53:46 +01:00
"plt.xticks(np.linspace(0, 100, 11))\n",
"plt.xlim(0, 100)\n",
"\n",
2021-04-27 23:46:23 +01:00
"plt.tight_layout()\n",
"plt.savefig('best-barh.png')\n",
"\n",
2021-04-09 13:04:40 +01:00
"plt.show()"
]
},
2021-04-06 21:14:45 +01:00
{
"cell_type": "code",
"execution_count": null,
2021-04-10 12:20:26 +01:00
"id": "8f36766a",
2021-04-06 21:14:45 +01:00
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
2021-04-27 23:46:23 +01:00
"name": "pythonjvsc74a57bd0333605e348ea7c6bf4ca805dbc845da062650cb5bf1d8f33f5f4a9d3bca7d68b",
"display_name": "Python 3.9.3 ('.venv': venv)"
2021-04-06 21:14:45 +01:00
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
2021-04-27 23:46:23 +01:00
"version": "3.9.3"
},
"metadata": {
"interpreter": {
"hash": "333605e348ea7c6bf4ca805dbc845da062650cb5bf1d8f33f5f4a9d3bca7d68b"
}
2021-04-06 21:14:45 +01:00
}
},
"nbformat": 4,
"nbformat_minor": 5
2021-04-27 23:46:23 +01:00
}