Skip to content

Commit

Permalink
Change paper link
Browse files Browse the repository at this point in the history
  • Loading branch information
greydanus committed May 22, 2024
1 parent 783f9c5 commit fd50cfd
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
The MNIST-1D Dataset
=======

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


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.
Expand Down
36 changes: 30 additions & 6 deletions notebooks/mnist1d-pip.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 6,
"execution_count": 9,
"id": "733c5564",
"metadata": {
"scrolled": true
Expand All @@ -14,7 +14,7 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": 22,
"id": "87fa18b4-7d57-46e5-aa42-694ac83ef4e6",
"metadata": {},
"outputs": [
Expand All @@ -24,18 +24,42 @@
"((4000, 40), (4000,), (40,))"
]
},
"execution_count": 7,
"execution_count": 22,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from mnist1d.data import make_dataset, get_dataset_args\n",
"\n",
"defaults = get_dataset_args()\n",
"data = make_dataset(defaults)\n",
"default_args = get_dataset_args()\n",
"data = make_dataset(default_args)\n",
"x,y,t = data['x'], data['y'], data['t']\n",
"x.shape, y.shape, t.shape\n",
"# >>> ((4000, 40), (4000,), (40,))"
]
},
{
"cell_type": "code",
"execution_count": 23,
"id": "dae1e6ec",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"((8000, 40), (8000,), (40,))"
]
},
"execution_count": 23,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"default_args.num_samples = 10000\n",
"data = make_dataset(default_args)\n",
"x,y,t = data['x'], data['y'], data['t']\n",
"\n",
"x.shape, y.shape, t.shape"
]
},
Expand Down

0 comments on commit fd50cfd

Please sign in to comment.