Questions tagged [mlr]

mlr is a machine learning package for R that provides an interface to many other packages.

mlr is an R package that provides a standardized API to many of R's machine learning packages. On top of that, it offers resampling, feature selection, automatic tuning, cost-sensitive learning and much more. Its website can be found at https://github.com/mlr-org/mlr/

328 questions
2
votes
1 answer

R package mlr exhausts memory with multicore

I am trying to run a reproducible example with the mlr R package in parallel, for which I have found the solution of using parallelStartMulticore (link). The project runs with packrat as well. The code runs properly on workstations and small…
AnonQuest
  • 23
  • 2
2
votes
1 answer

how to resample and compare the resutls when I just want to predict the last row of the data using surv. functions in mlr package, R?

I just start trying the R package mlr, I am wondering if I can customize training set and test set. For example, all the data of a time sequence are the training set except for the last,and the last one is the test set. Here is my…
Feng Chen
  • 2,139
  • 4
  • 33
  • 62
2
votes
1 answer

super.learner for makeStackedLearner in mlr package for R

The makeStackedLearner function in the R packages mlr seems to require a super.learner for method="stack.cv" and others (at least in some cases). However I couldn't find any information about how to choose one. What to look for in a suitable…
tover
  • 535
  • 4
  • 11
2
votes
1 answer

Tuning parms in rpart with MLR package?

I am trying to use the MLR package to tune the hyper-parameters of a decision tree built with the rpart package. Even if I can tune the basic parameters of the decision tree (e.g. minsplit, maxdepth and so on), I am not able to properly set the…
aprospero
  • 529
  • 3
  • 14
2
votes
1 answer

Set seed for h2o via mlr in R

Is it possible to set a seed for h2o models via mlr? I could only find how to do it in h2o directly, e.g. gbm_w_seed_2 <- h2o.gbm(x = predictors, y = response, training_frame = train, validation_frame = valid, col_sample_rate…
tover
  • 535
  • 4
  • 11
2
votes
1 answer

How to save an h2o model using mlr in R?

How can I save an h2o model trained with the mlr package and load it in a new session to predict the target variable for a new data set? In the following example I tried it with save and h2o.saveModel, but it throws an error. library(mlr) a <-…
tover
  • 535
  • 4
  • 11
2
votes
1 answer

Tuning randomForest cutoffs with MLR package

I've been exploring the marvelous mlr package with the titanic data set. My problem is implementing a random forest. More specifically, I'd like to tune the cutoff (i.e. the threshold which assigns leafs which are not pure to a given class). The…
Jacob H
  • 4,317
  • 2
  • 32
  • 39
2
votes
1 answer

Plotting critical differences in R with imported data

A critical difference (CD) plot for comparing classifiers over multiple data sets (Demšar2006) can be generated with the mlr package like this: # THIS WORKS library(mlr) lrns = list(makeLearner("classif.knn"), makeLearner("classif.svm")) tasks =…
rvf
  • 1,409
  • 2
  • 15
  • 21
2
votes
1 answer

R - mlr positive class changed

I'm using R mlr package because it allows me to use multiple classification methods and tune parameters, with the same methods in this package. But it changed my Positive Class. In my dataset, I need to predict "HasWriteOff", it has value "1" or…
Cherry Wu
  • 3,844
  • 9
  • 43
  • 63
2
votes
2 answers

R mlr - Creating learning curve from subset of training data and whole test data (not whole training data)?

let's say I'm creating such learning curve (possible little errors in code, it's just a sample). What I want is rather a classical learning curve, where you make enlarge the training set keeping the validation/test set the same size. learningCurve…
Matek
  • 641
  • 5
  • 16
2
votes
1 answer

Possible bug with bagging wrapper in mlr

The bagging wrapper seems to give strange results. If I apply it to a simple logistic regression then the logloss is amplyfied by a factor of 10: library(mlbench) library(mlr) data(PimaIndiansDiabetes) trainTask1 <- makeClassifTask(data =…
Richi W
  • 3,534
  • 4
  • 20
  • 39
2
votes
1 answer

Chain Classifiers in R

Is there any way to perform chain classification in multi-label classification problem. I have created a binary relevance model using mlr package which uses learners to achieve the same. But all the classification models in binary relevance are…
1
vote
1 answer

Is there an R function to combine the results of 2 training data sets?

I have a 2.2 Million row dataset. RandomForest throws an error if I have a training data set with more than 1 000 000 rows. So I split the data sets in two pieces and the models learn seperately. How do I combine() the models so I can make a…
1
vote
1 answer

Can a resample result object be converted to BMR result object in MLR?

I want to convert resample result object to BMR result object and combine it with previous BMR result object? This is possible in MLR3 (as_benchmark_result() and $cobmine()) but not sure if it is also possible in MLR
Ali Alhadab
  • 101
  • 5
1
vote
1 answer

AdaBoost algorithm Hyperparameter Tuning MLR

Im trying to tune the hyperparameters of the AdaBoost algorithm. The goal is to train a model with a multiclass classification variable as target. Im working with the MLR package in R. However, MLR does only give letters (see below) so Im not sure…