Skip to content

Commit a681e84

Browse files
committed
...
1 parent 4b84811 commit a681e84

File tree

32 files changed

+10393
-40
lines changed

32 files changed

+10393
-40
lines changed

paper/benchmark/benchmark.R

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ addAlgorithm("rtorch", fun = function(instance, job, opt_type, jit, ...) {
7070
instance$optimizer = paste0("ignite_", instance$optimizer)
7171
}
7272
callr::r(time_rtorch, args = c(instance, list(seed = job$seed, jit = jit)))
73+
#do.call(time_rtorch, args = c(instance, list(seed = job$seed, jit = jit)))
7374
})
7475

7576
addAlgorithm("mlr3torch", fun = function(instance, job, opt_type, jit, ...) {
@@ -80,6 +81,7 @@ addAlgorithm("mlr3torch", fun = function(instance, job, opt_type, jit, ...) {
8081
time_rtorch,
8182
args = c(instance, list(seed = job$seed, mlr3torch = TRUE, jit = jit))
8283
)
84+
#do.call(time_rtorch, args = c(instance, list(seed = job$seed, mlr3torch = TRUE, jit = jit)))
8385
})
8486

8587
# global config:
@@ -95,11 +97,7 @@ problem_design = expand.grid(
9597
n = N,
9698
p = P,
9799
epochs = EPOCHS,
98-
<<<<<<< Updated upstream
99-
latent = c(1000, 2000, 4000),
100-
=======
101100
latent = c(1000L, 2000L, 4000L),
102-
>>>>>>> Stashed changes
103101
optimizer = c("sgd", "adamw"),
104102
batch_size = 32L,
105103
device = "cuda",
@@ -141,19 +139,11 @@ problem_design = expand.grid(
141139
p = P,
142140
epochs = EPOCHS,
143141
# factor 10 smaller than cuda
144-
<<<<<<< Updated upstream
145-
latent = c(100, 200, 400),
146142
optimizer = c("sgd", "adamw"),
147143
batch_size = 32L,
148144
device = "cpu",
149-
n_layers = c(0L, 4L, 8L, 12L, 16L)
150-
=======
151-
latent = c(100L, 200L, 400L),
152-
optimizer = c("sgd", "adamw"),
153-
batch_size = 32L,
154-
device = "cpu",
155-
n_layers = c(1L, 4L, 8L, 12L, 16L)
156-
>>>>>>> Stashed changes
145+
n_layers = c(0L, 4L, 8L, 12L, 16L),
146+
latent = c(100L, 200L, 400L)
157147
),
158148
stringsAsFactors = FALSE
159149
)
@@ -180,3 +170,8 @@ addExperiments(
180170
),
181171
repls = REPLS
182172
)
173+
174+
tbl = unwrap(getJobTable())
175+
176+
ids = tbl[repl == 1 & optimizer == "sgd" & !jit & latent == 400 & device == "cpu" & n_layers == 8 & algorithm != "pytorch",]
177+
submitJobs(ids$job.id)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
Copyright (c) 2010-2015, Michael Bostock
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
7+
* Redistributions of source code must retain the above copyright notice, this
8+
list of conditions and the following disclaimer.
9+
10+
* Redistributions in binary form must reproduce the above copyright notice,
11+
this list of conditions and the following disclaimer in the documentation
12+
and/or other materials provided with the distribution.
13+
14+
* The name Michael Bostock may not be used to endorse or promote products
15+
derived from this software without specific prior written permission.
16+
17+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20+
DISCLAIMED. IN NO EVENT SHALL MICHAEL BOSTOCK BE LIABLE FOR ANY DIRECT,
21+
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
22+
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
24+
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25+
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
26+
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

paper/benchmark/mlr3torch_files/d3-3.5.6/d3.min.js

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Copyright (c) 2006, Ivan Sagalaev
2+
All rights reserved.
3+
Redistribution and use in source and binary forms, with or without
4+
modification, are permitted provided that the following conditions are met:
5+
6+
* Redistributions of source code must retain the above copyright
7+
notice, this list of conditions and the following disclaimer.
8+
* Redistributions in binary form must reproduce the above copyright
9+
notice, this list of conditions and the following disclaimer in the
10+
documentation and/or other materials provided with the distribution.
11+
* Neither the name of highlight.js nor the names of its contributors
12+
may be used to endorse or promote products derived from this software
13+
without specific prior written permission.
14+
15+
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND ANY
16+
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18+
DISCLAIMED. IN NO EVENT SHALL THE REGENTS AND CONTRIBUTORS BE LIABLE FOR ANY
19+
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22+
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

0 commit comments

Comments
 (0)