Skip to content

Commit

Permalink
Update Example scripts to work with current code base.
Browse files Browse the repository at this point in the history
  • Loading branch information
mzenk committed Jul 11, 2019
1 parent f1f079d commit 39ae91a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
5 changes: 3 additions & 2 deletions examples/pytorch_example.ipynb
Expand Up @@ -70,7 +70,7 @@
"outputs": [],
"source": [
"Exp = PytorchExperimentLogger(base_dir=\"./experiment_dir\", \n",
" experiment_name=\"test-experiment\",\n",
" exp_name=\"test-experiment\",\n",
" folder_format=\"{experiment_name}\")\n",
"\n",
"Viz = PytorchVisdomLogger(name=\"main\", port=8080)"
Expand Down Expand Up @@ -454,6 +454,7 @@
"autoscroll": false,
"ein.hycell": false,
"ein.tags": "worksheet-0",
"scrolled": true,
"slideshow": {
"slide_type": "-"
}
Expand Down Expand Up @@ -536,7 +537,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.3"
"version": "3.7.3"
},
"name": "pytorch_example.ipynb"
},
Expand Down
18 changes: 10 additions & 8 deletions examples/pytorch_experiment.ipynb
Expand Up @@ -293,14 +293,14 @@
"outputs": [],
"source": [
"exp = MNIST_experiment(config=c, name='experiment', n_epochs=c.n_epochs, \n",
" seed=42, base_dir='./experiment_dir')"
" seed=42, base_dir='./experiment_dir', loggers={\"visdom\":\"visdom\"})"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
"scrolled": true
},
"outputs": [],
"source": [
Expand Down Expand Up @@ -356,14 +356,14 @@
" resume=last_experiment, resume_save_types=('model',\n",
" 'simple',\n",
" 'th_vars',\n",
" 'results'))"
" 'results'), loggers={\"visdom\":\"visdom\"})"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
"scrolled": true
},
"outputs": [],
"source": [
Expand All @@ -389,12 +389,14 @@
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"metadata": {
"scrolled": true
},
"outputs": [],
"source": [
"c.lr = 0.0001\n",
"c.learning_rate = 0.0001\n",
"exp2 = MNIST_experiment(config=c, name='experiment2', n_epochs=c.n_epochs, \n",
" seed=42, base_dir='./experiment_dir')\n",
" seed=42, base_dir='./experiment_dir', loggers={\"visdom\":\"visdom\"})\n",
"exp2.run()"
]
},
Expand Down Expand Up @@ -431,7 +433,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.3"
"version": "3.7.3"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 39ae91a

Please sign in to comment.