diff options
Diffstat (limited to 'src/notebooks/01-look-at-emnist.ipynb')
| -rw-r--r-- | src/notebooks/01-look-at-emnist.ipynb | 54 | 
1 files changed, 47 insertions, 7 deletions
diff --git a/src/notebooks/01-look-at-emnist.ipynb b/src/notebooks/01-look-at-emnist.ipynb index 71aa3ec..a68b418 100644 --- a/src/notebooks/01-look-at-emnist.ipynb +++ b/src/notebooks/01-look-at-emnist.ipynb @@ -22,7 +22,7 @@    },    {     "cell_type": "code", -   "execution_count": 4, +   "execution_count": 2,     "metadata": {},     "outputs": [],     "source": [ @@ -31,7 +31,7 @@    },    {     "cell_type": "code", -   "execution_count": 5, +   "execution_count": 3,     "metadata": {},     "outputs": [],     "source": [ @@ -41,7 +41,7 @@    },    {     "cell_type": "code", -   "execution_count": 9, +   "execution_count": 4,     "metadata": {},     "outputs": [      { @@ -62,7 +62,7 @@    },    {     "cell_type": "code", -   "execution_count": 10, +   "execution_count": 7,     "metadata": {},     "outputs": [],     "source": [ @@ -75,12 +75,12 @@      "        ax.imshow(x, cmap='gray')\n",      "        ax.set_xticks([])\n",      "        ax.set_yticks([])\n", -    "        ax.set_title(dataset.mapping[int(y)])" +    "        ax.set_title(dataset.translator(int(y)))"     ]    },    {     "cell_type": "code", -   "execution_count": 12, +   "execution_count": 8,     "metadata": {},     "outputs": [      { @@ -100,7 +100,7 @@    },    {     "cell_type": "code", -   "execution_count": 13, +   "execution_count": 9,     "metadata": {},     "outputs": [      { @@ -120,6 +120,46 @@    },    {     "cell_type": "code", +   "execution_count": 11, +   "metadata": {}, +   "outputs": [ +    { +     "data": { +      "text/plain": [ +       "torch.Size([1, 28, 28])" +      ] +     }, +     "execution_count": 11, +     "metadata": {}, +     "output_type": "execute_result" +    } +   ], +   "source": [ +    "dataset[0][0].shape" +   ] +  }, +  { +   "cell_type": "code", +   "execution_count": 13, +   "metadata": {}, +   "outputs": [ +    { +     "data": { +      "text/plain": [ +       "torch.int64" +      ] +     }, +     "execution_count": 13, +     "metadata": {}, +     "output_type": "execute_result" +    } +   ], +   "source": [ +    "dataset[0][1].dtype" +   ] +  }, +  { +   "cell_type": "code",     "execution_count": null,     "metadata": {},     "outputs": [],  |