Skip to content

Instantly share code, notes, and snippets.

@RaphaelS1
Created April 17, 2021 09:27
Show Gist options
  • Save RaphaelS1/d97953d8daf54cd314037023ede15931 to your computer and use it in GitHub Desktop.
Save RaphaelS1/d97953d8daf54cd314037023ede15931 to your computer and use it in GitHub Desktop.
library(mlr3pipelines)
create_pipeops <- function(learner) {
 po("encode") %>>% po("scale") %>>% po("learner", learner)
}
## apply our function
learners <- lapply(learners, create_pipeops)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment