batchtools icon indicating copy to clipboard operation
batchtools copied to clipboard

getProblem and getAlgo

Open berndbischl opened this issue 8 years ago • 4 comments

how can i get back objects i added to the reg?

like here https://github.com/tudo-r/BatchExperiments/blob/master/R/getProblem.R

berndbischl avatar Jun 09 '17 19:06 berndbischl

There is no class Problem or Algorithm (yet). This is on my todo. In the meantime, you can access everything like this:

j = makeJob(1)
j$problem
j$algorithm
j$instance

Note that this is subject to change.

mllg avatar Jun 10 '17 07:06 mllg

This is on my todo

ok. i think this should be supported. if you add it, you need to be able to retrieve this.

j = makeJob(1) j$problem j$algorithm j$instance

this is was i remembered. but: isnt makeJob a misnomer? because is l was looking for "getJob"? (also i find this strange that i did not find makeJob at all)

berndbischl avatar Jun 10 '17 09:06 berndbischl

(also i find this strange that i did not find makeJob at all)

so what i did was: after getProblem did not exist i looked at all getters. there i also didnt see a getter for the job. makeJob really sounds like something else, an constructor.

berndbischl avatar Jun 10 '17 09:06 berndbischl

suggestion: either alias or rename makeJob.

also one could document how to access the problem like you have shown here. (with the little warning about it maybe being changed) it is also not the best solution, because i have a problem name, to start out, not a job id.

berndbischl avatar Jun 10 '17 09:06 berndbischl