Skip to content

Commit dfdb5b6

Browse files
committed
Update
1 parent 0aa0cd1 commit dfdb5b6

File tree

14 files changed

+172
-161
lines changed

14 files changed

+172
-161
lines changed

paper/benchmark/benchmark.R

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,20 @@ library(mlr3misc)
44
setup = function(reg_path, python_path, work_dir) {
55

66
print_setup_info(reg_path, python_path, work_dir)
7+
8+
9+
if (file.exists(reg_path)) {
10+
msg <- sprintf("Registry already exists at path %s. Delete the folder it to run the benchmark again.", reg_path)
11+
if (!interactive()) {
12+
stop(msg)
13+
}
14+
answer <- readline(sprintf("Registry already exists at path %s. Delete it to run the benchmark again? (y/n)", reg_path))
15+
if (answer == "y") {
16+
unlink(reg_path, recursive = TRUE)
17+
} else {
18+
stop(msg)
19+
}
20+
}
721

822
reg = makeExperimentRegistry(
923
file.dir = reg_path,

paper/benchmark/linux-cpu.R

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
library(here)
22

3-
source(here("benchmark", "benchmark.R"))
4-
53
set.seed(42)
4+
source(here("benchmark", "benchmark.R"))
65

76
# Change this when not running this in the docker image
87
# Below is the correct python path for the CPU docker image.
98
PYTHON_PATH = "/opt/venv/bin/python"
109

11-
if (dir.exists(here("benchmark", "registry-linux-gpu"))) {
12-
stop("Registry benchmark/registry-linux-cpu already exists. Delete the folder to run the benchmark again.")
13-
}
14-
1510
setup(
1611
here("benchmark", "registry-linux-cpu"),
1712
PYTHON_PATH,

paper/benchmark/linux-gpu-optimizer.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,6 @@ problem_design = expand.grid(
2626
stringsAsFactors = FALSE
2727
)
2828

29-
if (dir.exists(here("benchmark", "registry-linux-gpu-optimizer"))) {
30-
stop("Registry benchmark/registry-linux-gpu-optimizer already exists. Delete the folder to run the benchmark again.")
31-
}
3229

3330
setup(
3431
here("benchmark", "registry-linux-gpu-optimizer"),

paper/benchmark/linux-gpu.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ problem_design = expand.grid(
2626
stringsAsFactors = FALSE
2727
)
2828

29-
if (dir.exists(here("benchmark", "registry-linux-gpu"))) {
30-
stop("Registry benchmark/registry-linux-gpu already exists. Delete the folder to run the benchmark again.")
31-
}
32-
3329
setup(
3430
here("benchmark", "registry-linux-gpu"),
3531
PYTHON_PATH,
-3 Bytes
Binary file not shown.

paper/figure/unnamed-chunk-1-1.png

-24 KB
Binary file not shown.

paper/paper_code.html

Lines changed: 32 additions & 27 deletions
Large diffs are not rendered by default.

paper/paper_code.md

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Sys.time()
77
```
88

99
```
10-
## [1] "2026-01-29 17:27:24 CET"
10+
## [1] "2026-01-30 10:49:44 UTC"
1111
```
1212

1313
``` r
@@ -71,7 +71,7 @@ mnist
7171

7272
```
7373
##
74-
## ── <TaskClassif> (70000x2): MNIST Digit Classification ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
74+
## ── <TaskClassif> (70000x2): MNIST Digit Classification ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
7575
## • Target: label
7676
## • Target classes: 1 (11%), 7 (10%), 3 (10%), 2 (10%), 9 (10%), 0 (10%), 6 (10%), 8 (10%), 4 (10%), 5 (9%)
7777
## • Properties: multiclass
@@ -137,7 +137,7 @@ mlp$model$network
137137
```
138138
## An `nn_module` containing 100,710 parameters.
139139
##
140-
## ── Modules ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
140+
## ── Modules ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
141141
## • 0: <nn_linear> #78,500 parameters
142142
## • 1: <nn_relu> #0 parameters
143143
## • 2: <nn_dropout> #0 parameters
@@ -154,7 +154,7 @@ head(mlp$model$callbacks$history, n = 2)
154154
```
155155
## epoch train.classif.logloss
156156
## <num> <num>
157-
## 1: 1 4.266896
157+
## 1: 1 4.266895
158158
## 2: 2 1.296983
159159
```
160160

@@ -165,7 +165,7 @@ pred$score(msr("classif.ce"))
165165

166166
```
167167
## classif.ce
168-
## 0.19
168+
## 0.21
169169
```
170170

171171
``` r
@@ -354,7 +354,7 @@ task
354354

355355
```
356356
##
357-
## ── <TaskRegr> (32x11): Motor Trends ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
357+
## ── <TaskRegr> (32x11): Motor Trends ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
358358
## • Target: mpg
359359
## • Properties: -
360360
## • Features (10):
@@ -484,7 +484,7 @@ task
484484

485485
```
486486
##
487-
## ── <TaskClassif> (25000x2) ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
487+
## ── <TaskClassif> (25000x2) ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
488488
## • Target: class
489489
## • Target classes: cat (positive class, 50%), dog (50%)
490490
## • Properties: twoclass
@@ -525,7 +525,7 @@ learner$model$classif.resnet18$model$callbacks$history
525525
## epoch valid.classif.acc
526526
## <num> <num>
527527
## 1: 1 0.4179104
528-
## 2: 2 0.4626866
528+
## 2: 2 0.4477612
529529
## 3: 3 0.8955224
530530
## 4: 4 0.8955224
531531
## 5: 5 0.9253731
@@ -540,7 +540,7 @@ task
540540

541541
```
542542
##
543-
## ── <TaskClassif> (32701x5): Melanoma Classification ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
543+
## ── <TaskClassif> (32701x5): Melanoma Classification ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
544544
## • Target: outcome
545545
## • Target classes: malignant (positive class, 2%), benign (98%)
546546
## • Properties: twoclass, groups
@@ -642,7 +642,7 @@ Sys.time()
642642
```
643643

644644
```
645-
## [1] "2026-01-29 17:36:21 CET"
645+
## [1] "2026-01-30 11:04:48 UTC"
646646
```
647647

648648
``` r
@@ -651,27 +651,32 @@ sessionInfo()
651651

652652
```
653653
## R version 4.5.1 (2025-06-13)
654-
## Platform: aarch64-apple-darwin20
655-
## Running under: macOS Sequoia 15.2
654+
## Platform: x86_64-pc-linux-gnu
655+
## Running under: Ubuntu 24.04.3 LTS
656656
##
657657
## Matrix products: default
658-
## BLAS: /Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/lib/libRblas.0.dylib
659-
## LAPACK: /Library/Frameworks/R.framework/Versions/4.5-arm64/Resources/lib/libRlapack.dylib; LAPACK version 3.12.1
658+
## BLAS: /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3
659+
## LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.26.so; LAPACK version 3.12.0
660660
##
661661
## locale:
662-
## [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
662+
## [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
663+
## [3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
664+
## [5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
665+
## [7] LC_PAPER=en_US.UTF-8 LC_NAME=C
666+
## [9] LC_ADDRESS=C LC_TELEPHONE=C
667+
## [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
663668
##
664-
## time zone: Europe/Berlin
665-
## tzcode source: internal
669+
## time zone: Etc/UTC
670+
## tzcode source: system (glibc)
666671
##
667672
## attached base packages:
668-
## [1] stats graphics grDevices datasets utils methods base
673+
## [1] stats graphics grDevices utils datasets methods base
669674
##
670675
## other attached packages:
671-
## [1] ggplot2_4.0.0 mlr3viz_0.10.1.9000 torchdatasets_0.3.1
672-
## [4] mlr3tuning_1.4.0 paradox_1.0.1 mlr3torch_0.3.2
673-
## [7] torch_0.16.3 future_1.67.0 mlr3pipelines_0.9.0
674-
## [10] mlr3_1.2.0
676+
## [1] ggplot2_4.0.0 mlr3viz_0.10.1.9000 torchdatasets_0.3.1
677+
## [4] mlr3tuning_1.4.0 paradox_1.0.1 mlr3torch_0.3.2-9000
678+
## [7] torch_0.16.3 future_1.67.0 mlr3pipelines_0.9.0
679+
## [10] mlr3_1.2.0
675680
##
676681
## loaded via a namespace (and not attached):
677682
## [1] gtable_0.3.6 xfun_0.54 processx_3.8.6
@@ -692,8 +697,8 @@ sessionInfo()
692697
## [46] jpeg_0.1-11 bit_4.6.0 evaluate_1.0.5
693698
## [49] knitr_1.50 torchvision_0.8.0 viridisLite_0.4.2
694699
## [52] mlr3misc_0.19.0 rlang_1.1.6 Rcpp_1.1.0
695-
## [55] zeallot_0.2.0 glue_1.8.0 renv_1.1.5
696-
## [58] palmerpenguins_0.1.1 coro_1.1.0 jsonlite_2.0.0
697-
## [61] lgr_0.5.0 R6_2.6.1 fs_1.6.6
700+
## [55] zeallot_0.2.0 glue_1.8.0 palmerpenguins_0.1.1
701+
## [58] coro_1.1.0 jsonlite_2.0.0 lgr_0.5.0
702+
## [61] R6_2.6.1 fs_1.6.6
698703
```
699704

17.3 KB
Loading

0 commit comments

Comments
 (0)