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
1 answer

How to handle with dummy features

I am sorry if the question came up earlier, but I found nothing like that. I have a problem with the predictive models. I would like to build xgboost and random forest. The package I use requires that in xgboost construction, dummy variables should…
ann
  • 19
  • 3
0
votes
2 answers

list output truncated - How to show full listLearners()

In mlr package i try to see all options of listLearners() But I see just first 6 elements. I try other methods like listLearners("regr")[1:10, c("class","package")] But however class package 1 regr.blackboost mboost,party 2 …
Edward
  • 4,443
  • 16
  • 46
  • 81
0
votes
1 answer

mlr - Access data between or after preprocessing steps

Is there a way to access the data after performing a preprocessing step using a wrapper in mlr? Here a stripped version of the code: library(mlr) library(mlbench) data <- BreastCancer[, 2:11] lrn <- makeLearner(cl = "classif.ranger", …
notiv
  • 441
  • 5
  • 12
0
votes
1 answer

Is it possible to use custom resampling methods when using nesting in mlr?

I'm using the nested resampling capabilities of the R mlr package, as outlined here: http://mlr-org.github.io/mlr-tutorial/release/html/nested_resampling/index.html? The problem I am working on is a financial time series (FX rate) and so the…
andy
  • 21
  • 3
0
votes
0 answers

simple OVO scheme with MLR and basic learners

I found the Cost-Sensitive OVO scheme with simple voting prediction (https://mlr-org.github.io/mlr-tutorial/devel/html/cost_sensitive_classif/index.html) but, is there a simple way to just follow a OVO scheme with all basic learners included in the…
0
votes
1 answer

Which classes should (binary) factor variables for R package mlr have?

I want to prepare a data set to use it in a Task of the mlr package. Should binary factor independent variables be of class factor, logical, character, or integer? Is it OK to have factor variables with more than 2 classes as factor/character or are…
tover
  • 535
  • 4
  • 11
0
votes
1 answer

How to use mlr to customize classification model

I am studying mlr and try to customize my own classification model. I am using the example from https://mlr-org.github.io/mlr-tutorial/release/html/create_learner/index.html#classification. Here is my…
Feng Chen
  • 2,139
  • 4
  • 33
  • 62
0
votes
1 answer

Retrieving distance matrix from kknn model

Is it possible to retrieve the distance matrix from the kknn model when using mlr package in R and cross validation? library("mlr") data(iris) task = makeClassifTask(data = iris, target = "Species") lnr = makeLearner( cl = "classif.kknn", …
JimBoy
  • 597
  • 8
  • 18
0
votes
1 answer

MLR MARS/Earth classifier: flexible discriminant analysis or logistic regression?

I'm trying to learn about MARS/Earth models for classification and am using "classif.earth" in the MLR package in R. My issue is that the MLR documentation says that "classif.earth" performs flexible discriminant analysis using the earth algorithm.…
0
votes
2 answers

Multiple Output Regression with MLR (and NN)?

I wanted to create a Neural Network with multiple outputs (Multiple Output Regression - not classification) - as I never used mlr I wanted to try it and failed right away before coming to the Neural Network part, as I could not find a "task" for…
katsumi
  • 154
  • 8
0
votes
1 answer

R: multiplot for plotLearnerPrediction ggplot objects of MLR firing errors in RStudio

The article here demonstrates the MLR package. The plotLearnerPrediction function returns an ggplot object by this. I tried the multiplot function provided for ggplot2 objects below but my RStudio crashes with it. I am able to plot things without…
hhh
  • 50,788
  • 62
  • 179
  • 282
0
votes
1 answer

MLR and vector-valued classifiers / multi-task learning

The R package MLR supports multi-label classification that maps a feature vector into a set of discrete labels Y_1, Y_2,...,Y_k. For example, Y_1, ..., might be categorical demographic traits such as age, income, gender, and multiple of these may…
Andrew M
  • 490
  • 5
  • 11
0
votes
1 answer

mlr package r: feature selection sequential forward search error: Must have at least 1 cols

I am trying to use the mlr package in R for applying feature selection to a bagged learner, using sequential forward search. d <- data.frame(a = rnorm(1000, mean = 1), b = rnorm(1000, mean = 2), c =…
0
votes
2 answers

how to use multiclass.au1p measure in mlr

I am trying to use multiclass.au1p measure in mlr package. It gave me an error saying Error in FUN(X[[i]], ...) : Measure multiclass.au1p requires predict type to be: 'prob'! When I tried to set the predict type to prob then it gave me an…
Roshana
  • 357
  • 1
  • 3
  • 17
0
votes
0 answers

Error in La.svd(x, nu, nv) : error code 1 from Lapack routine 'dgesdd'

I got Error in La.svd(x, nu, nv) : error code 1 from Lapack routine 'dgesdd' using mlr when training the learner. Any suggestions on how to fix it?
1 2 3
21
22