Skip to content

Commit fd50cfd

Browse files
committed
Change paper link
1 parent 783f9c5 commit fd50cfd

File tree

2 files changed

+31
-7
lines changed

2 files changed

+31
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
The MNIST-1D Dataset
22
=======
33

4-
[Blog post](https://greydanus.github.io/2020/12/01/scaling-down/) | [Paper](https://arxiv.org/abs/2011.14439) | [GitHub](https://github.com/greydanus/mnist1d)
4+
[Blog post](https://greydanus.github.io/2020/12/01/scaling-down/) | [Paper](https://arxiv.org/abs/2011.14439v4) | [GitHub](https://github.com/greydanus/mnist1d)
55

66

77
Most machine learning models get around the same ~99% test accuracy on MNIST. The dataset in this repo, MNIST-1D, is 20x smaller and does a better job of separating between models with/without nonlinearity and models with/without spatial inductive biases.

notebooks/mnist1d-pip.ipynb

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "code",
5-
"execution_count": 6,
5+
"execution_count": 9,
66
"id": "733c5564",
77
"metadata": {
88
"scrolled": true
@@ -14,7 +14,7 @@
1414
},
1515
{
1616
"cell_type": "code",
17-
"execution_count": 7,
17+
"execution_count": 22,
1818
"id": "87fa18b4-7d57-46e5-aa42-694ac83ef4e6",
1919
"metadata": {},
2020
"outputs": [
@@ -24,18 +24,42 @@
2424
"((4000, 40), (4000,), (40,))"
2525
]
2626
},
27-
"execution_count": 7,
27+
"execution_count": 22,
2828
"metadata": {},
2929
"output_type": "execute_result"
3030
}
3131
],
3232
"source": [
3333
"from mnist1d.data import make_dataset, get_dataset_args\n",
3434
"\n",
35-
"defaults = get_dataset_args()\n",
36-
"data = make_dataset(defaults)\n",
35+
"default_args = get_dataset_args()\n",
36+
"data = make_dataset(default_args)\n",
37+
"x,y,t = data['x'], data['y'], data['t']\n",
38+
"x.shape, y.shape, t.shape\n",
39+
"# >>> ((4000, 40), (4000,), (40,))"
40+
]
41+
},
42+
{
43+
"cell_type": "code",
44+
"execution_count": 23,
45+
"id": "dae1e6ec",
46+
"metadata": {},
47+
"outputs": [
48+
{
49+
"data": {
50+
"text/plain": [
51+
"((8000, 40), (8000,), (40,))"
52+
]
53+
},
54+
"execution_count": 23,
55+
"metadata": {},
56+
"output_type": "execute_result"
57+
}
58+
],
59+
"source": [
60+
"default_args.num_samples = 10000\n",
61+
"data = make_dataset(default_args)\n",
3762
"x,y,t = data['x'], data['y'], data['t']\n",
38-
"\n",
3963
"x.shape, y.shape, t.shape"
4064
]
4165
},

0 commit comments

Comments
 (0)