|
| 1 | +{ |
| 2 | + "cells": [ |
| 3 | + { |
| 4 | + "cell_type": "markdown", |
| 5 | + "id": "14547470-7b8a-4347-af76-f2fe5ffe328e", |
| 6 | + "metadata": {}, |
| 7 | + "source": [ |
| 8 | + "# Task3" |
| 9 | + ] |
| 10 | + }, |
| 11 | + { |
| 12 | + "cell_type": "code", |
| 13 | + "execution_count": null, |
| 14 | + "id": "11ff712a-3fe6-4f68-b15d-6f9121ce059b", |
| 15 | + "metadata": {}, |
| 16 | + "outputs": [], |
| 17 | + "source": [ |
| 18 | + "# Copy this at the end of task2 notebook.\n", |
| 19 | + "\n", |
| 20 | + "# OR\n", |
| 21 | + "\n", |
| 22 | + "# Make the directory structure and file naming conventions as asked in Task1.\n", |
| 23 | + "# Use ImageDataGenerator for preprocessing and augmentation.\n", |
| 24 | + "# You can use the validation_subset feature\n", |
| 25 | + "# of ImageDataGenerator if not explicitly created a directory of validation set.\n", |
| 26 | + "# Write the code here for the same." |
| 27 | + ] |
| 28 | + }, |
| 29 | + { |
| 30 | + "cell_type": "code", |
| 31 | + "execution_count": null, |
| 32 | + "id": "449dd6c7-d46c-44b6-b3b7-1424b6de0b78", |
| 33 | + "metadata": {}, |
| 34 | + "outputs": [], |
| 35 | + "source": [ |
| 36 | + "# Import libraries here." |
| 37 | + ] |
| 38 | + }, |
| 39 | + { |
| 40 | + "cell_type": "code", |
| 41 | + "execution_count": null, |
| 42 | + "id": "35f52cf6-f555-4347-a640-061decd08bf6", |
| 43 | + "metadata": {}, |
| 44 | + "outputs": [], |
| 45 | + "source": [ |
| 46 | + "# Make the model architecture." |
| 47 | + ] |
| 48 | + }, |
| 49 | + { |
| 50 | + "cell_type": "code", |
| 51 | + "execution_count": null, |
| 52 | + "id": "5bf8bf83-7649-45a0-99b1-9a428d65e4ab", |
| 53 | + "metadata": {}, |
| 54 | + "outputs": [], |
| 55 | + "source": [ |
| 56 | + "# Show model.summary()." |
| 57 | + ] |
| 58 | + }, |
| 59 | + { |
| 60 | + "cell_type": "code", |
| 61 | + "execution_count": null, |
| 62 | + "id": "9d23594e-d916-4586-bf80-c2a33dbc8980", |
| 63 | + "metadata": {}, |
| 64 | + "outputs": [], |
| 65 | + "source": [ |
| 66 | + "# Compile the model." |
| 67 | + ] |
| 68 | + }, |
| 69 | + { |
| 70 | + "cell_type": "code", |
| 71 | + "execution_count": null, |
| 72 | + "id": "f0b8a1a9-a371-4932-8bf2-ec16d0d52d61", |
| 73 | + "metadata": {}, |
| 74 | + "outputs": [], |
| 75 | + "source": [ |
| 76 | + "# Fit the model. The output must be visible of every epoch." |
| 77 | + ] |
| 78 | + }, |
| 79 | + { |
| 80 | + "cell_type": "code", |
| 81 | + "execution_count": null, |
| 82 | + "id": "27d2c052-852c-4ae9-8fe6-05fe3d09f245", |
| 83 | + "metadata": {}, |
| 84 | + "outputs": [], |
| 85 | + "source": [ |
| 86 | + "# Plot Accuracy vs Validation Accuracy." |
| 87 | + ] |
| 88 | + }, |
| 89 | + { |
| 90 | + "cell_type": "code", |
| 91 | + "execution_count": null, |
| 92 | + "id": "eaa1ad2c-913a-4050-b0de-252dbd13b022", |
| 93 | + "metadata": {}, |
| 94 | + "outputs": [], |
| 95 | + "source": [ |
| 96 | + "# Plot Loss vs Validation Loss." |
| 97 | + ] |
| 98 | + }, |
| 99 | + { |
| 100 | + "cell_type": "code", |
| 101 | + "execution_count": null, |
| 102 | + "id": "6e381c67-eb39-4d0b-b48e-dc881e95409a", |
| 103 | + "metadata": {}, |
| 104 | + "outputs": [], |
| 105 | + "source": [ |
| 106 | + "# Test the model on test_set." |
| 107 | + ] |
| 108 | + }, |
| 109 | + { |
| 110 | + "cell_type": "code", |
| 111 | + "execution_count": null, |
| 112 | + "id": "b28b4c5e-4da3-4875-8b7b-32b207073a44", |
| 113 | + "metadata": {}, |
| 114 | + "outputs": [], |
| 115 | + "source": [ |
| 116 | + "# Print test loss and test accuracy." |
| 117 | + ] |
| 118 | + }, |
| 119 | + { |
| 120 | + "cell_type": "code", |
| 121 | + "execution_count": null, |
| 122 | + "id": "29af04a5-5043-4463-9c16-27849d3ccc32", |
| 123 | + "metadata": {}, |
| 124 | + "outputs": [], |
| 125 | + "source": [] |
| 126 | + }, |
| 127 | + { |
| 128 | + "cell_type": "markdown", |
| 129 | + "id": "5159db29-c1e8-456e-86de-2e863c9e6621", |
| 130 | + "metadata": {}, |
| 131 | + "source": [ |
| 132 | + "## You can use more methods of your choice to improve accuracy.\n", |
| 133 | + "## Basic code structure is provided.\n", |
| 134 | + "## Note that the accuracy on the test set must be over 40% for merging." |
| 135 | + ] |
| 136 | + }, |
| 137 | + { |
| 138 | + "cell_type": "code", |
| 139 | + "execution_count": null, |
| 140 | + "id": "b4431328-7a5e-40cf-9729-b1cf7af4ec87", |
| 141 | + "metadata": {}, |
| 142 | + "outputs": [], |
| 143 | + "source": [] |
| 144 | + } |
| 145 | + ], |
| 146 | + "metadata": { |
| 147 | + "kernelspec": { |
| 148 | + "display_name": "Python 3 (ipykernel)", |
| 149 | + "language": "python", |
| 150 | + "name": "python3" |
| 151 | + }, |
| 152 | + "language_info": { |
| 153 | + "codemirror_mode": { |
| 154 | + "name": "ipython", |
| 155 | + "version": 3 |
| 156 | + }, |
| 157 | + "file_extension": ".py", |
| 158 | + "mimetype": "text/x-python", |
| 159 | + "name": "python", |
| 160 | + "nbconvert_exporter": "python", |
| 161 | + "pygments_lexer": "ipython3", |
| 162 | + "version": "3.11.5" |
| 163 | + } |
| 164 | + }, |
| 165 | + "nbformat": 4, |
| 166 | + "nbformat_minor": 5 |
| 167 | +} |
0 commit comments