findExperiments {BatchExperiments} | R Documentation |
Find ids of experiments that match a query.
Description
Find job ids by querying problem/algorithm ids, problem/algorithm parameters or replication number.
Usage
findExperiments(
reg,
ids,
prob.pattern,
prob.pars,
algo.pattern,
algo.pars,
repls,
match.substring = TRUE,
regexp = FALSE
)
Arguments
reg |
[ |
ids |
[ |
prob.pattern |
[ |
prob.pars |
[R expression] |
algo.pattern |
[ |
algo.pars |
[R expression] |
repls |
[ |
match.substring |
[ |
regexp |
[ |
Value
[integer
]. Ids for experiments which match the query.
Examples
reg = makeExperimentRegistry(id = "example1", file.dir = tempfile())
p1 = addProblem(reg, "one", 1)
p2 = addProblem(reg, "two", 2)
a = addAlgorithm(reg, "A", fun = function(static, n) static + n)
addExperiments(reg, algo.design = makeDesign(a, exhaustive = list(n = 1:4)))
findExperiments(reg, prob.pattern = "one")
findExperiments(reg, prob.pattern = "o")
findExperiments(reg, algo.pars = (n > 2))