Skip to content

Commit

Permalink
Import fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Holger Kohr committed Dec 17, 2017
1 parent 5af18aa commit 9a572ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
20 changes: 8 additions & 12 deletions code/part2_classification_pytorch.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,15 @@
"outputs": [],
"source": [
"% matplotlib inline\n",
"from IPython.display import display, clear_output\n",
"import matplotlib.pyplot as plt\n",
"import numpy as np\n",
"np.random.seed(0)\n",
"from IPython.display import display, clear_output"
"from IPython.display import display, clear_output\n",
"import torch\n",
"from torch import nn\n",
"from torch.autograd import Variable\n",
"from torch.nn import functional as F\n",
"from torch import optim\n",
"import torchvision\n",
"from torchvision import datasets, transforms"
]
},
{
Expand Down Expand Up @@ -95,14 +99,6 @@
"metadata": {},
"outputs": [],
"source": [
"import torch\n",
"from torch import nn\n",
"from torch.autograd import Variable\n",
"from torch.nn import functional as F\n",
"from torch import optim\n",
"import torchvision\n",
"from torchvision import datasets, transforms\n",
"\n",
"# Load training and test data (from the official MNIST example,\n",
"# https://github.com/pytorch/examples/blob/master/mnist/main.py)\n",
"trafo = transforms.Compose([\n",
Expand Down
2 changes: 1 addition & 1 deletion code/part3_learned_reconstruction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Learned Reconstruction\n",
"# Learned Reconstruction\n",
"\n",
"In inverse problems, we want to recover some signal $x$ from noisy measurements $y$ where we know the forward model $\\mathcal{T} : \\mathcal{X} \\to \\mathcal{Y}$\n",
"$$\n",
Expand Down

0 comments on commit 9a572ad

Please sign in to comment.