331 questions
-1
votes
1
answer
62
views
generatePartialDependenceData function returns Error when used for multiclass classification model
I have build an XGBoost multiclass classification model using mlr and i want to visualize the partial dependence for some features. However, if i try to do so using generatePartialDependenceData() i ...
-2
votes
1
answer
164
views
How to Rearrange the column order of a csv file [duplicate]
Am trying to rearrange the column order of below sample data ,
USI,CFG LEI,Counterparty LEI,UPI,Product Class,Execution venue,MTM,Currency 1,Currency 2,Notional amount 1,Notional amount 2,Exchange ...
0
votes
1
answer
52
views
mlrMBO Error in validObject(model, complete = TRUE)
I'm trying to recreate the example from here using my data, but I'm getting an error
x <- structure(list(`1` = c(0L, 0L, 0L, 0L, 0L),
`2` = c(0L, 0L, 0L, 0L, 0L),
...
1
vote
1
answer
70
views
mlrMBO Optimizing the noisy function
I'm trying to find the minimum of an unknown noisy multivariate function. For clarity, let's take a simple case.
set.seed(5)
s <- sin(0.5 * seq(0,10,0.1) + 5)/-1
ln <- as.numeric(length(s))
sn &...
4
votes
0
answers
203
views
Error message while tuning the threshold for classification learners using stacking with the mlr3 package
I've coded a graph that performs stacking using the mlr3 package. Here is the graph:
The objective is for the graph to return weighted average predictions via the learner classif.avg. I am currently ...
1
vote
0
answers
124
views
A learner for MaxEnt models using the mlr3 package
I am creating a learner for Maximum Entropy (MaxEnt) models using the mlr3 package. I use the maxnet function (from the maxnet package) to fit MaxEnt models. Here is a link to the function: maxnet.
I ...
2
votes
1
answer
123
views
p-values for optimization on validation set MLR
I have optimized some algorithms (in mlr3) on a validation set :
random forest
xgboost
svm
I have extracted the balanced accuracy of each algorithm but I'd like to know if there is a possibility to ...
0
votes
1
answer
50
views
How can I use rsample for multiple mrl algorithms?
I have some difficulty using the function resample of mlr package, in my case for example.
library(mlr)
learners = makeLearners(cls = c("C50", "rpart","ada","...
0
votes
1
answer
779
views
Assertion on 'task' failed: Must inherit from class 'Task', but has class 'data.frame'
I trained an XGBoost model using mlr package. I need to make a prediction on a test set that does not have the target variable. I should just predict the target variable. If I do this:
testF.pred <-...
0
votes
0
answers
52
views
Error in checkMeasures(measures, learner) : object 'fbeta' not found
I am doing an imbalanced classification task, so I want to use f-beta as performance measure. I used the library(mlr) to set measures=fbeta, which follows:
library(mlr)
#create tasks
## Create ...
0
votes
1
answer
77
views
Can the mlr package be used to make predictions based on data from a panel study?
I am planning to do a supvervised machine learning project where I use data from a longitudinal study (panel study). The goal is to use the 2004 and 2009 predictors to predict the 2014 outcomes. I ...
0
votes
1
answer
251
views
Set hyper-parameters to tune with makeParamSet
I am running random forest classification in R with mlr package. I would like to tune the following hyper-parameters: number of trees, number of variables to consider at each split, terminal node size ...
0
votes
0
answers
21
views
how to fill order arguments in multilabel in R - MLR package
I want to change the order in Classifier Chains multilabel classification
makeMultilabelClassifierChainsWrapper(learner, order = NULL)
how to fill order arguments ? except NULL
0
votes
1
answer
123
views
Why won't MLR package create the single classification task for my data?
I am having a similar issue as this person , but the link to the tutorial they reference seems broken and my problem is more related to a single classifying function, whereas most other posts on this ...
1
vote
1
answer
174
views
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 ...