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
0
votes
0 answers

Error in .jcall("weka/filters/Filter", "Weka/core/Instances;", "useFilter", : java.lang.IllegalArgumentException:

I am trying to execute the following code to filter features using mlr as shown in here fv = generateFilterValuesData(classifTask, method = c("information.gain", "chi.squared")) But I get the following error although the specified attribute is…
SaikiHanee
  • 849
  • 5
  • 13
  • 22
0
votes
0 answers

MLR - Regression Benchmark Results - Visualisation

What are the options for visualising the results of a benchmark experiment of regression learners? For instance, generateCalibrationData doesn't accept a benchmark result object derived from a set of regr. learners. I would like something similar to…
0
votes
1 answer

resampling error in MLR

My task would be to stratify a regression task, the data looks like f1,f2,f3,... m1,m2...,p1,p2,p3... where f_i are numerical and the other columns are factors and integers. Now I define a self defined measure m1, after running the following…
sunxd
  • 743
  • 1
  • 9
  • 24
0
votes
0 answers

Error in model.frame.default(Terms, newdata, na.action = na.pass, xlev = object$xlevels) : factor has new levels

I am trying to use mlr package to do classification using the following user defined function clasFunc . when I call the function using clasFunc("classif.lda") I get an error message saying Error in model.frame.default(Terms, newdata,…
SaikiHanee
  • 849
  • 5
  • 13
  • 22
0
votes
1 answer

Why does mlr give different results in different runs even when using set.seed()?

To publish reproducible results obtained in the mlr package one should use the set.seed() function to control the randomness of the code. Testing, it seems such practice doesn't lead to the desired results, in which different runs of the code give…
catastrophic-failure
  • 3,759
  • 1
  • 24
  • 43
0
votes
2 answers

Cannot install mlr package on work machine which uses a proxy server

I have R and R studio on my work PC and am trying to download and use the unbalanced package. Everytime I try however it tells me that the dependency mlr will not be downloaded. install.packages("mlr") Package which is only available in source…
James Oliver
  • 547
  • 1
  • 4
  • 17
0
votes
1 answer

Why do I get: The length of labels must equal the number of rows in the input data error while using mlr with xgboost

After running the following R code: #' load libraries library(parallelMap) library(mlr) #' *** Define the task task = makeClassifTask(id = "classif_prem", data = data, target = "Result") #' ***…
sagrules
  • 31
  • 1
  • 7
0
votes
1 answer

mlr classification training with rpart does not complete

I have a classification task that I managed to train with mlr package using LDA ("classif.lda") in a few seconds. However when I trained it using "classif.rpart" the training never ended. Is there any different setup to be done for the different…
Ricky
  • 4,616
  • 6
  • 42
  • 72
0
votes
1 answer

Error: 'multiclass.roc.default' is not an exported object from 'namespace:pROC'

I'm using mlr R package (v2.3), trying to use multiclass auc as one of the measures when using CV in a 3-class classification problem. But, I'm getting the following error: Error: 'multiclass.roc.default' is not an exported object from…
-1
votes
1 answer

How to construct a learner or random forest regression in R

Example scripts for random forest using the mlr package are for classification problems. I have a random forest regression model for water contamination. I could classify the continuous target variable but I would rather run a regression. If anyone…
BHope
  • 135
  • 9
-1
votes
1 answer

R MLR package - Saving performance for each parameter

I am using the mlr package in R to run the KNN algorithm. I am using tuneParams to search for the optimal k. When I run tuneParams the output shows the performance for each value of k. How can I save the performance for each k? The TuneResult object…
-1
votes
1 answer

reusable holdout in mlr

How can someone change the cross validation or holdout procedures in mlr so that before testing with the validation set, that same validation set is changed according to a procedure, namely the reusable holdout…
-2
votes
1 answer

Plotting lift curve in MLR

I would like to know how to plot lift curves in MLR especially for a Benchmark experiment with multiple algorithms and tasks. Help with ROC curve plotting will also be appreciated. Thanks.
1 2 3
21
22