-
Install the development version
devtools::install_github("ja-thomas/mlComp")
Machine Learning competitions and challenges in R. Create mlr learner to beat performance threshold on OpenML tasks. Users can set difficulty level and time limit.
library(mlComp)
chall = Challenge$new(id = 3, difficulty = "very easy", time.limit = 3600)
lrn = makeLearner("classif.rpart")
chall$submit(lrn)
# random challenge (From OpenML-CC18)
chall.rand = Challenge$new(difficulty = "very easy", time.limit = 3600)
# daily challenge
chall.rand = Challenge$new("daily", difficulty = "very easy", time.limit = 3600)
The dataset can not be changed by the user, but preprocessing can be done via mlrCPO
library(mlComp)
library(mlrCPO)
chall = Challenge$new(id = 3, difficulty = "very easy", time.limit = 3600)
lrn = cpoModelMatrix(~ 0 + .^2) %>>% # interactions
makeLearner("classif.rpart")
chall$submit(lrn)