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
1
vote
0 answers

Plotting training metric after benchmark experiment

I want to access and plot both the training accuracy and the test accuracy after a benchmark experiment. I am using accuracy as a metric. If I set the aggregation of the accuracy to train.acc and create a list of both test.acc and train.acc, then…
1
vote
1 answer

MLR resampling creates oneclass problems for multilabel classification

I am trying to measure performance of multilabel classification for some MLR classifiers using cross validation I tried to use MLR resample method or pass my own subset, however in both situations an error gets thrown (from what I have found out it…
J. Łyskawa
  • 301
  • 1
  • 3
  • 10
1
vote
1 answer

How to Deploy model using plumber API from CMD line R?

New to using plumber API, trying to deploy R model, I have saved the R Model and a test data (OneRecord). Ran the plumber API from CMD line, 127.0.0.1:8000 returns Error "{"error":["500 - Internal server error"]}" and the terminal shows an error of…
hanzgs
  • 1,498
  • 17
  • 44
1
vote
1 answer

R: How to use parallelMap (with mlr, xgboost) on linux server? Unexpected performance compared to windows

I am trying to parallelize at the tuning hyperparameter level an xgboost model that I am tuning in mlr and am trying to parallelize with parallelMap. I have code that works successfully on my windows machine (with only 8 cores) and would like to…
PBB
  • 131
  • 1
  • 7
1
vote
1 answer

Partial dependence must be requested with partial.dep when tuning more than 2 hyperparameters?

I am tuning more than 2 hyperparameters, while Generate hyperparameter effect data using the function generateHyperParsEffectData I set partial.dep = TRUE, while plotting plotHyperParsEffect i am getting error for classification learner, its…
hanzgs
  • 1,498
  • 17
  • 44
1
vote
0 answers

MLR: How to extract feature Selection inside a benchmark

I want to do a benchmark with different models in mlr via 3 fold cross validation. In every fold i want to do again via a 3 fold cross validation a feature selection for every model and pass the best feature set to the outer cross validation. I…
janbauer
  • 57
  • 2
  • 6
1
vote
0 answers

Choosing prediction model with regularization, spatial cross-validation and bounded predictions

I am new to machine learning and R. I want to run a statistical model to predict daily hours of supply of electricity (y). I have several x variables to use for prediction. I have three goals to achieve: I want to use some sort of regularization to…
Mihir Sharma
  • 51
  • 1
  • 7
1
vote
0 answers

Correct usage of mlr::mergeBenchmarkResults

I'm trying to resolve an error I'm facing with mlr::mergeBenchmarkResults, which is: Error in mergeBenchmarkResults(bmrs = list(bmr, bmr_no_mos)): The following task - learner combination(s) occur either multiple times or are missing: * wnv_no_mos…
Rahul
  • 2,579
  • 1
  • 13
  • 22
1
vote
2 answers

MLR package R - Change formula for GLM

I am new to the mlr package. I am trying to change formula for my glm that I am fitting using the mlr package. I am fitting my logistic regression using the below code. #logistic regression logistic.learner <-…
user13874
  • 367
  • 2
  • 10
1
vote
1 answer

How to visualize and print rules of the classif.rpart model from mlr package, like in rpart.plot and rpart.rules?

I'm creating rules from the decision tree generated by mlr package wrapper learner classif.rpart, how to print the rules as in rpart.rules and how to visualize as in rpart.plot Created the learner using classif.rpart, trained and fitted the model,…
hanzgs
  • 1,498
  • 17
  • 44
1
vote
1 answer

Tuning the classification threshold in mlr

I am training a Naive Bayes model using the mlr package. I would like to tune the threshold (and only the threshold) for the classification. The tutorial provides an example for doing this while also doing additional hyperparameter tuning in a…
AW2
  • 53
  • 1
  • 7
1
vote
0 answers

MLR - Survival analysis with time-dependent data

I am using mlr and would like to be able to use the extended version of the Cox PH model for right-censored, time dependent covariates. This is what I have tried, following the vignette on time-dependent covariates …
panda
  • 821
  • 1
  • 9
  • 20
1
vote
2 answers

Performing multiclass PLS-DA with mlr package in R

I want to use partial least squares discriminant analysis (PLS-DA) to solve a classification problem where there are multiple classes to be predicted. I know PLS-DA is not limited to the two class problem, and I believe that using plsda from the…
1
vote
1 answer

plotTuneMultiCritResult does not work with TuneMultiCritControlMBO

I am trying to plot the Pareto front of a TuneMultiCritResult object, tuned with a control object of class TuneMultiCritControlMBO: # multi-criteria optimization of (tpr, fpr) with MBO lrn = makeLearner("classif.ksvm") rdesc =…
lordbitin
  • 185
  • 1
  • 9
1
vote
1 answer

How to iterate over one argument, applying the same function over the same data

The "generateFilterValuesData" is a function of the "mlr" package that uses various algorithms for feature selection. I would like to apply the different algorithms in an iterative way over the same data to examine the different features selected by…
RAN
  • 85
  • 8