Questions tagged [r-ranger]
69 questions
0
votes
2 answers
Different runtime for svm and ranger using the same task
I've bench-marked the runtime of the two learners and also took two screenshots of the {htop} while {ranger} and {svm} was training to make my point more clearer. As stated in the title of this post, my question is the reason Why train/predict in…

Sheykhmousa
- 139
- 9
0
votes
1 answer
Ranger predict incorrect number of dimensions in R
Issues with evaluating ranger. In both, unable to subset the data (want the first column of rf.trnprob)
rangermodel= ranger(outcome~., data=traindata, num.trees=200, probability=TRUE)
rf.trnprob= predict(rangerModel, traindata,…

helicon
- 23
- 3
0
votes
1 answer
Repeated CV in TuneRanger
I am using the package "TuneRanger" to tune a RF model. It works good and I obtained good results but I am not sure if it is overfitting my model. I would like to use a Repeated CV for every instance the package is tuning the model but I can't find…

Deco1998
- 101
- 6
0
votes
1 answer
set max depth for tuning ranger in random forest tidymodels r
I would like to tune the depth of my random forest to avoid overfitting. I am using tidymodels and this is my model code.
rf_model <- rand_forest(mtry = tune(),
trees = tune(),
max.depth = tune())…

Moshee
- 544
- 1
- 3
- 16
0
votes
2 answers
fit_resamples with ranger package fails
try to use crossfold resampling and fit a random forest from the ranger package. The fit without resampling works but once I try a resample fit it fails with error below.
Consider following df
df<-structure(list(a = c(1379405931, 732812609,…

CER
- 854
- 10
- 22
0
votes
1 answer
Feature importance plot using xgb and also ranger. Best way to compare
I'm working on a script that trains both a ranger random forest and a xgb regression. Depending on which performs best based on rmse, one or the other is used to test against hold out data.
I would also like to return feature importance for both in…

Doug Fir
- 19,971
- 47
- 169
- 299
0
votes
1 answer
Has anyone tried using Shapley function from iml package with a ranger regression model?
I am trying to use the iml package to build the Shapely plots. As per documentation given in the package and this post, if model being used is not from the supported packages like caret, a custom prediction function has to be defined. When I am…

AshwiniJ
- 51
- 1
- 5
0
votes
1 answer
Component meaning of ranger.forest
I'm working with ranger, a fast implementation of Random Forests. The problem is I have no idea how to interpret the $forest component of the result. The document simply says
forest: Saved forest (If write.forest set to TRUE). Note that the…

nalzok
- 14,965
- 21
- 72
- 139
-2
votes
1 answer
Training, Tuning, Cross-Validating, and Testing Ranger (Random Forest) Quantile Regression Model?
May someone share how to train, tune (hyperparameters), cross-validate, and test a ranger quantile regression model, along with error evaluation? With the iris or Boston housing dataset?
The reason I ask is because I have not been able to find many…

Jaskeil
- 1,044
- 12
- 33