diff --git a/lab-09_4_mnist_nn_deep.ipynb b/lab-09_4_mnist_nn_deep.ipynb index 413f993..0af2f4e 100644 --- a/lab-09_4_mnist_nn_deep.ipynb +++ b/lab-09_4_mnist_nn_deep.ipynb @@ -126,7 +126,7 @@ "outputs": [], "source": [ "# model\n", - "model = torch.nn.Sequential(linear1, relu, linear2, relu, linear3).to(device)" + "model = torch.nn.Sequential(linear1, relu, linear2, relu, linear3, relu, linear4, relu, linear5).to(device)" ] }, { diff --git a/lab-09_6_mnist_batchnorm.ipynb b/lab-09_6_mnist_batchnorm.ipynb index 6db3122..9180d5f 100644 --- a/lab-09_6_mnist_batchnorm.ipynb +++ b/lab-09_6_mnist_batchnorm.ipynb @@ -340,6 +340,7 @@ } ], "metadata": { + "hide_input": false, "kernelspec": { "display_name": "Python 3", "language": "python", @@ -355,7 +356,49 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.5.3" + "version": "3.6.9" + }, + "toc": { + "base_numbering": 1, + "nav_menu": {}, + "number_sections": true, + "sideBar": true, + "skip_h1_title": false, + "title_cell": "Table of Contents", + "title_sidebar": "Contents", + "toc_cell": false, + "toc_position": {}, + "toc_section_display": true, + "toc_window_display": false + }, + "varInspector": { + "cols": { + "lenName": 16, + "lenType": 16, + "lenVar": 40 + }, + "kernels_config": { + "python": { + "delete_cmd_postfix": "", + "delete_cmd_prefix": "del ", + "library": "var_list.py", + "varRefreshCmd": "print(var_dic_list())" + }, + "r": { + "delete_cmd_postfix": ") ", + "delete_cmd_prefix": "rm(", + "library": "var_list.r", + "varRefreshCmd": "cat(var_dic_list()) " + } + }, + "types_to_exclude": [ + "module", + "function", + "builtin_function_or_method", + "instance", + "_Feature" + ], + "window_display": false } }, "nbformat": 4, diff --git a/lab-10_4_2_ImageFolder_2.ipynb b/lab-10_4_2_ImageFolder_2.ipynb index 25d201a..2d5d948 100644 --- a/lab-10_4_2_ImageFolder_2.ipynb +++ b/lab-10_4_2_ImageFolder_2.ipynb @@ -9,8 +9,13 @@ }, { "cell_type": "code", - "execution_count": null, - "metadata": {}, + "execution_count": 1, + "metadata": { + "ExecuteTime": { + "end_time": "2019-09-23T06:05:39.991797Z", + "start_time": "2019-09-23T06:05:39.397420Z" + } + }, "outputs": [], "source": [ "import torch\n", @@ -26,8 +31,13 @@ }, { "cell_type": "code", - "execution_count": null, - "metadata": {}, + "execution_count": 2, + "metadata": { + "ExecuteTime": { + "end_time": "2019-09-23T06:05:41.676294Z", + "start_time": "2019-09-23T06:05:41.116824Z" + } + }, "outputs": [], "source": [ "device = 'cuda' if torch.cuda.is_available() else 'cpu'\n", @@ -39,8 +49,13 @@ }, { "cell_type": "code", - "execution_count": null, - "metadata": {}, + "execution_count": 4, + "metadata": { + "ExecuteTime": { + "end_time": "2019-09-23T06:05:56.379585Z", + "start_time": "2019-09-23T06:05:56.369616Z" + } + }, "outputs": [], "source": [ "trans = transforms.Compose([\n", @@ -52,8 +67,13 @@ }, { "cell_type": "code", - "execution_count": null, - "metadata": {}, + "execution_count": 5, + "metadata": { + "ExecuteTime": { + "end_time": "2019-09-23T06:05:59.364095Z", + "start_time": "2019-09-23T06:05:59.360104Z" + } + }, "outputs": [], "source": [ "data_loader = DataLoader(dataset = train_data, batch_size = 8, shuffle = True, num_workers=2)" @@ -61,8 +81,13 @@ }, { "cell_type": "code", - "execution_count": null, - "metadata": {}, + "execution_count": 6, + "metadata": { + "ExecuteTime": { + "end_time": "2019-09-23T06:06:01.217173Z", + "start_time": "2019-09-23T06:06:01.208163Z" + } + }, "outputs": [], "source": [ "class CNN(nn.Module):\n", @@ -228,6 +253,7 @@ } ], "metadata": { + "hide_input": false, "kernelspec": { "display_name": "Python 3", "language": "python", @@ -243,7 +269,49 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.1" + "version": "3.6.9" + }, + "toc": { + "base_numbering": 1, + "nav_menu": {}, + "number_sections": true, + "sideBar": true, + "skip_h1_title": false, + "title_cell": "Table of Contents", + "title_sidebar": "Contents", + "toc_cell": false, + "toc_position": {}, + "toc_section_display": true, + "toc_window_display": false + }, + "varInspector": { + "cols": { + "lenName": 16, + "lenType": 16, + "lenVar": 40 + }, + "kernels_config": { + "python": { + "delete_cmd_postfix": "", + "delete_cmd_prefix": "del ", + "library": "var_list.py", + "varRefreshCmd": "print(var_dic_list())" + }, + "r": { + "delete_cmd_postfix": ") ", + "delete_cmd_prefix": "rm(", + "library": "var_list.r", + "varRefreshCmd": "cat(var_dic_list()) " + } + }, + "types_to_exclude": [ + "module", + "function", + "builtin_function_or_method", + "instance", + "_Feature" + ], + "window_display": false } }, "nbformat": 4,