Questions tagged [mlr3]

mlr3 is the next generation of the mlr package for machine learning in R.

Filter by
Sorted by
Tagged with
1
vote
1answer
43 views

mlr3 - how to remove incomplete observations using `mlr3` interface

Is it possible to remove incomplete observation within a task --- task <- TaskRegr$new("data", data, "y") --- using mlr3 filters or pipeops?
2
votes
0answers
34 views

Where does mlr3 save the final model?

Where does mlr3 save the final model, after training a learner --- learner$train(data)? By "final model", I mean something like a list produced by the following code: model <- xgboost::...
0
votes
0answers
26 views

mlr3 - confidence interval for predictions

After tuning a learner and using it, we can use it to make predictions through the command line predict(Learner, newdata, predict_type="response") But, how do we compute confidence ...
0
votes
2answers
56 views

mlr3 - Apply pre-processing to new data

Using lmr3verse package here. Let's say I applied the following pre-processing to the training set used to train Learner: preprocess <- po("scale", param_vals = list(center = TRUE, scale =...
1
vote
1answer
47 views

mlr3: obtaining response (predicted survival time) from surv.gbm

surv.gbm in the mlr3 framework outputs linear predictors, however what I'm really interested in are predicted survival times per case, which I want to compare with the actual survival times. Is there ...
1
vote
1answer
56 views

Create branches with different subsets of data with mlr3 PipeOps

I want to train models on different subsets of data using mlr3, and I was wondering if there a way to train models on different subsets of data in a pipeline. What I want to do is similar to the ...
2
votes
0answers
42 views

MLR3 average scores from an ensemble

Using an example from the very helpful mlr3 book, I am trying to simply return the average score of the stacked model output. Can someone please explain how to do this using mlr3? I've tried using ...
1
vote
1answer
46 views

Why is xgboost not calculating the importance for all variables when using it with mlr3?

So, im using the superconductivity dataset found here... It contains 82 variables and I am subsetting the data to 2000 rows. But when I use xgboost with mlr3 it does not calculate the importance for ...
0
votes
1answer
51 views

mlr3: How to filter with mlr on training data set and apply results to model training?

When creating a filter in mlr3 how do you base the filter on only the training data? Once the filter is created how do you apply the filter to the modeling process and subset the training data to only ...
1
vote
1answer
50 views

How to filter mlr3 task dataset by feature value

I have a mlr3 task, where I have dataset like this: Dataset "all" all <- data.frame(v1 = c("a", "b"), v2 = c(1, 2), data = c("test&...
1
vote
1answer
55 views

MLR 3 Learners contains 5 learner only?

I am learning new MLR environment using MLR3 Compared to MLR, I can get the learners list using: library(mlr) ListLearners() in MLR3, I get the learners list using: library(mlr3) mlr_learners <...
1
vote
2answers
79 views

Is there a way to group rows (especially dummy variables) in the recipes package in R (or ml3)

# Packages library(dplyr) library(recipes) # toy dataset, with A being multicolored df <- tibble(name = c("A", "A", "A", "B", "C"), color = c(&...
0
votes
1answer
56 views

mlr3 distrcompose cdf: subscript out of bounds

R version used: 3.6.3, mlr3 version: 0.4.0-9000, mlr3proba version: 0.1.6.9000, mlr3pipelines version: 0.1.2 and xgboost version: 0.90.0.2 (as stated on Rstudio package manager) I have deployed the ...
0
votes
1answer
40 views

mlr3proba surv.xgboost is not producing distr output + documentation link unstable

R version used: 3.6.3, mlr3 version: 0.4.0-9000, mlr3proba version: 0.1.6.9000 and xgboost version: 0.90.0.2 (as stated on Rstudio package manager) Unfortunately, when applying surv.xgboost for ...
1
vote
1answer
39 views

Variable importance not defined in mlr3 rpart learner

I trained and tested a decision tree classifier with mlr3 package in R: pred_probability = learner_DT$train(task_train)$predict(task_test) How can I get the variable importance from this model? I ...

15 30 50 per page