Spaces:
Runtime error
Runtime error
carlfeynman
commited on
Commit
•
c772c06
1
Parent(s):
3bcac80
log
Browse files- mnist_classifier.ipynb +15 -3
- mnist_classifier.py +0 -2
mnist_classifier.ipynb
CHANGED
@@ -11,11 +11,23 @@
|
|
11 |
"import torch.nn.functional as F\n",
|
12 |
"from datasets import load_dataset\n",
|
13 |
"import fastcore.all as fc\n",
|
14 |
-
"import matplotlib.pyplot as plt\n",
|
15 |
-
"import matplotlib as mpl\n",
|
16 |
"import torchvision.transforms.functional as TF\n",
|
17 |
"from torch.utils.data import default_collate, DataLoader\n",
|
18 |
-
"import torch.optim as optim
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
]
|
20 |
},
|
21 |
{
|
|
|
11 |
"import torch.nn.functional as F\n",
|
12 |
"from datasets import load_dataset\n",
|
13 |
"import fastcore.all as fc\n",
|
|
|
|
|
14 |
"import torchvision.transforms.functional as TF\n",
|
15 |
"from torch.utils.data import default_collate, DataLoader\n",
|
16 |
+
"import torch.optim as optim"
|
17 |
+
]
|
18 |
+
},
|
19 |
+
{
|
20 |
+
"cell_type": "code",
|
21 |
+
"execution_count": null,
|
22 |
+
"metadata": {
|
23 |
+
"tags": [
|
24 |
+
"exclude"
|
25 |
+
]
|
26 |
+
},
|
27 |
+
"outputs": [],
|
28 |
+
"source": [
|
29 |
+
"import matplotlib.pyplot as plt\n",
|
30 |
+
"import matplotlib as mpl"
|
31 |
]
|
32 |
},
|
33 |
{
|
mnist_classifier.py
CHANGED
@@ -6,8 +6,6 @@ from torch import nn
|
|
6 |
import torch.nn.functional as F
|
7 |
from datasets import load_dataset
|
8 |
import fastcore.all as fc
|
9 |
-
import matplotlib.pyplot as plt
|
10 |
-
import matplotlib as mpl
|
11 |
import torchvision.transforms.functional as TF
|
12 |
from torch.utils.data import default_collate, DataLoader
|
13 |
import torch.optim as optim
|
|
|
6 |
import torch.nn.functional as F
|
7 |
from datasets import load_dataset
|
8 |
import fastcore.all as fc
|
|
|
|
|
9 |
import torchvision.transforms.functional as TF
|
10 |
from torch.utils.data import default_collate, DataLoader
|
11 |
import torch.optim as optim
|