mlr3pipelines icon indicating copy to clipboard operation
mlr3pipelines copied to clipboard

make single pipeop application easier

Open mb706 opened this issue 2 years ago • 3 comments

p = po("encode")
task_preproc = p$train(list(task))[[1]]

mb706 avatar Aug 12 '22 14:08 mb706

potential problem: we don't want to tempt people into doing the wrong kind of preprocessing on train and test set

mb706 avatar Aug 12 '22 14:08 mb706

suggestion (bb):

outdata = preproc("encode", indata, paramlist, state = state)

mb706 avatar Aug 12 '22 14:08 mb706

maybe we want to have preproc(po("encode", paramlist)) instead, more consistent and would also work with PipeOps that are not in po().

mb706 avatar Aug 12 '22 14:08 mb706