Skip to content

Commit

Permalink
Broken link fix in notebook 2
Browse files Browse the repository at this point in the history
  • Loading branch information
greydanus committed May 6, 2024
1 parent 01ea44f commit 249f31a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 29 deletions.
22 changes: 5 additions & 17 deletions notebooks/1. quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,11 @@
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Cloning into 'mnist1d'...\n",
"remote: Enumerating objects: 323, done.\u001b[K\n",
"remote: Counting objects: 100% (155/155), done.\u001b[K\n",
"remote: Compressing objects: 100% (80/80), done.\u001b[K\n",
"remote: Total 323 (delta 88), reused 131 (delta 71), pack-reused 168\u001b[K\n",
"Receiving objects: 100% (323/323), 8.44 MiB | 5.12 MiB/s, done.\n",
"Resolving deltas: 100% (133/133), done.\n"
]
}
],
"execution_count": 3,
"metadata": {
"scrolled": true
},
"outputs": [],
"source": [
"!python -m pip install git+https://github.com/greydanus/mnist1d.git@master\n",
" \n",
Expand Down
18 changes: 6 additions & 12 deletions notebooks/2. building_mnist1d.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,11 @@
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"fatal: destination path 'mnist1d' already exists and is not an empty directory.\r\n"
]
}
],
"execution_count": 5,
"metadata": {
"scrolled": true
},
"outputs": [],
"source": [
"!python -m pip install git+https://github.com/greydanus/mnist1d.git@master\n",
" \n",
Expand Down Expand Up @@ -692,7 +686,7 @@
"datas, guesses, trues = [], [], []\n",
"accs = []\n",
"for tag in tags:\n",
" [d, g, t] = from_pickle('../static/human_{}.pkl'.format(tag))\n",
" [d, g, t] = from_pickle('./mnist1d/static/human_{}.pkl'.format(tag))\n",
" acc = 100.*np.sum(np.asarray(g)==np.asarray(t))/len(g)\n",
" print(tag, acc)\n",
" accs.append(acc)\n",
Expand Down

0 comments on commit 249f31a

Please sign in to comment.