ja-thomas / mlComp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mlComp - Machine Learning Challenges based on mlr and OpenML

CRAN Status Badge CRAN Downloads

  • Install the development version

    devtools::install_github("ja-thomas/mlComp")

General overview

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)

Data Preprocessing

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)

About

License:Other


Languages

Language:R 100.0%