Skip to content

Commit 572a0cf

Browse files
sklearn: class + regression notebooks
1 parent f701e42 commit 572a0cf

3 files changed

Lines changed: 2743 additions & 6 deletions

File tree

notebooks/10_spot_hpt_sklearn_classification.ipynb

Lines changed: 2726 additions & 0 deletions
Large diffs are not rendered by default.

notebooks/14_spot_ray_hpt_torch_cifar10.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6310,7 +6310,7 @@
63106310
"name": "python",
63116311
"nbconvert_exporter": "python",
63126312
"pygments_lexer": "ipython3",
6313-
"version": "3.10.6"
6313+
"version": "3.10.10"
63146314
},
63156315
"vscode": {
63166316
"interpreter": {

notebooks/10_spot_hpt_sklearn.ipynb renamed to notebooks/15_spot_hpt_sklearn_regression.ipynb

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
{
3333
"data": {
3434
"text/plain": [
35-
"'10-sklearn_p040025_10min_50init_2023-05-09_00-04-46'"
35+
"'10-sklearn_maans03_10min_50init_2023-05-09_11-57-59'"
3636
]
3737
},
3838
"execution_count": 2,
@@ -79,8 +79,8 @@
7979
"name": "stdout",
8080
"output_type": "stream",
8181
"text": [
82-
"spotPython 0.0.63\n",
83-
"spotRiver 0.0.92\n",
82+
"spotPython 0.0.63\n",
83+
"spotRiver 0.0.92\n",
8484
"Note: you may need to restart the kernel to use updated packages.\n"
8585
]
8686
}
@@ -433,6 +433,17 @@
433433
" 2. `metric_sklearn` is used for the sklearn based evaluation."
434434
]
435435
},
436+
{
437+
"attachments": {},
438+
"cell_type": "markdown",
439+
"metadata": {},
440+
"source": [
441+
"**Important**:\n",
442+
"\n",
443+
"* `spotPython` performs minimization by default.\n",
444+
"* If accuracy or roc/auc should be maximized, then the objective function has to be multiplied by -1. Therefore, `weights` is set to -1 in this case."
445+
]
446+
},
436447
{
437448
"cell_type": "code",
438449
"execution_count": 15,
@@ -567,7 +578,7 @@
567578
"name": "stdout",
568579
"output_type": "stream",
569580
"text": [
570-
"spotPython tuning: [##--------] 23.07% \r"
581+
"spotPython tuning: [----------] 3.18% \r"
571582
]
572583
}
573584
],
@@ -908,7 +919,7 @@
908919
"name": "python",
909920
"nbconvert_exporter": "python",
910921
"pygments_lexer": "ipython3",
911-
"version": "3.10.6"
922+
"version": "3.10.10"
912923
},
913924
"vscode": {
914925
"interpreter": {

0 commit comments

Comments
 (0)