Skip to content

Commit e8530fb

Browse files
documentation, arxiv v0.2.15
1 parent 1c8e33a commit e8530fb

50 files changed

Lines changed: 1376 additions & 4174 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/bart23e.html

Lines changed: 752 additions & 747 deletions
Large diffs are not rendered by default.

docs/bart23e.pdf

813 KB
Binary file not shown.
753 KB
299 KB

docs/search.json

Lines changed: 21 additions & 14 deletions
Large diffs are not rendered by default.

notebooks/14_spot_ray_hpt_torch_cifar10.ipynb

Lines changed: 559 additions & 856 deletions
Large diffs are not rendered by default.

notebooks/23_spot_torch_vbdp.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13916,7 +13916,7 @@
1391613916
"name": "python",
1391713917
"nbconvert_exporter": "python",
1391813918
"pygments_lexer": "ipython3",
13919-
"version": "3.10.11"
13919+
"version": "3.10.10"
1392013920
}
1392113921
},
1392213922
"nbformat": 4,

notebooks/24_spot_torch_regression.ipynb

Lines changed: 43 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,14 @@
407407
" x = self.fc3(x)\n",
408408
" return x\n",
409409
"\n",
410-
"```\n",
410+
"```\n"
411+
]
412+
},
413+
{
414+
"attachments": {},
415+
"cell_type": "markdown",
416+
"metadata": {},
417+
"source": [
411418
"\n",
412419
"#### The `Net_Core` class\n",
413420
"\n",
@@ -438,7 +445,13 @@
438445
" self.sgd_momentum = sgd_momentum\n",
439446
"```\n",
440447
"\n",
441-
":::{.callout-note}\n",
448+
":::{.callout-note}"
449+
]
450+
},
451+
{
452+
"cell_type": "markdown",
453+
"metadata": {},
454+
"source": [
442455
"\n",
443456
"\n",
444457
"We see that the class `Net_lin_reg` has additional attributes and does not inherit from `nn` directly. It adds an additional class, `Net_core`, that takes care of additional attributes that are common to all neural network models, e.g., the learning rate multiplier `lr_mult` or the batch size `batch_size`.\n",
@@ -63168,12 +63181,12 @@
6316863181
]
6316963182
},
6317063183
{
63184+
"attachments": {},
6317163185
"cell_type": "markdown",
6317263186
"metadata": {},
6317363187
"source": [
6317463188
"\n",
63175-
"## Tensorboard {#sec-tensorboard}\n",
63176-
"\n"
63189+
"## Tensorboard {#sec-tensorboard}"
6317763190
]
6317863191
},
6317963192
{
@@ -63389,13 +63402,14 @@
6338963402
"\n",
6339063403
"\n",
6339163404
"```{raw}\n",
63392-
"Net_CIFAR10(\n",
63393-
" (conv1): Conv2d(3, 6, kernel_size=(5, 5), stride=(1, 1))\n",
63394-
" (pool): MaxPool2d(kernel_size=2, stride=2, padding=0, dilation=1, ceil_mode=False)\n",
63395-
" (conv2): Conv2d(6, 16, kernel_size=(5, 5), stride=(1, 1))\n",
63396-
" (fc1): Linear(in_features=400, out_features=64, bias=True)\n",
63405+
"Net_lin_reg(\n",
63406+
" (fc1): Linear(in_features=10, out_features=64, bias=True)\n",
6339763407
" (fc2): Linear(in_features=64, out_features=32, bias=True)\n",
63398-
" (fc3): Linear(in_features=32, out_features=10, bias=True)\n",
63408+
" (fc3): Linear(in_features=32, out_features=1, bias=True)\n",
63409+
" (relu): ReLU()\n",
63410+
" (softmax): Softmax(dim=1)\n",
63411+
" (dropout1): Dropout(p=0.0, inplace=False)\n",
63412+
" (dropout2): Dropout(p=0.0, inplace=False)\n",
6339963413
")\n",
6340063414
"```\n",
6340163415
"\n"
@@ -84464,9 +84478,12 @@
8446484478
"metadata": {},
8446584479
"source": [
8446684480
"```{raw}\n",
84467-
"Loss on hold-out set: 1.2267619131326675\n",
84468-
"Accuracy on hold-out set: 0.58955\n",
84469-
"Early stopping at epoch 13\n",
84481+
"Epoch: 1\n",
84482+
"Loss on hold-out set: 0.17853929138431945\n",
84483+
"MeanAbsoluteError value on hold-out data: 0.3907899856567383\n",
84484+
"Epoch: 2\n",
84485+
"Loss on hold-out set: 0.17439044278115035\n",
84486+
"MeanAbsoluteError value on hold-out data: 0.38570401072502136\n",
8447084487
"```\n",
8447184488
"\n",
8447284489
"If `path` is set to a filename, e.g., `path = \"model_spot_trained.pt\"`, the weights of the trained model will be loaded from this file."
@@ -84509,6 +84526,18 @@
8450984526
" task=fun_control[\"task\"],)"
8451084527
]
8451184528
},
84529+
{
84530+
"cell_type": "raw",
84531+
"metadata": {},
84532+
"source": [
84533+
"Loss on hold-out set: 1.85966069472272e-05\n",
84534+
"MeanAbsoluteError value on hold-out data: 0.0021022311411798\n",
84535+
"Final evaluation: Validation loss: 1.85966069472272e-05\n",
84536+
"Final evaluation: Validation metric: 0.0021022311411798\n",
84537+
"----------------------------------------------\n",
84538+
"(1.85966069472272e-05, nan, tensor(0.0021))"
84539+
]
84540+
},
8451284541
{
8451384542
"cell_type": "markdown",
8451484543
"metadata": {},
@@ -220752,7 +220781,7 @@
220752220781
"name": "python",
220753220782
"nbconvert_exporter": "python",
220754220783
"pygments_lexer": "ipython3",
220755-
"version": "3.10.11"
220784+
"version": "3.10.10"
220756220785
}
220757220786
},
220758220787
"nbformat": 4,

notebooks/24_spot_torch_regression_orig.ipynb

Lines changed: 0 additions & 2542 deletions
This file was deleted.
115 KB

0 commit comments

Comments
 (0)