selecttrain_rf: Select and train final random forest

Description Usage Arguments Value

Description

Select final random forest learner and train it, optionally adjusting inner sampling strategy for hyperparameter tuning (i.e., cross-validation strategy).

Usage

1
2
3
4
5
6
7
selecttrain_rf(
  in_rf,
  in_learnerid = NULL,
  in_task = NULL,
  insamp_nfolds = NULL,
  insamp_nevals = NULL
)

Arguments

in_rf

ResampleResult of learner to use or BenchmarkResult from which to extract learner.

in_task

Task containing predictor variables to subset.

insamp_nfolds

(optional) number of cross-validation folds to adjust in inner (hyperparameter tuning) cross-validation

insamp_nevals

(optional) number of cross-validation repetitions in inner (hyperparameter tuning) cross-validation

in_lrnid

id of learner to extract from BenchmarkResult (e.g., "oversample.classif.ranger")

Value

list containing the outer resampling (i.e. performance cross-validation) results named ('rf_outer'), the trained learner ('rf_inner') and the task on which it was trained ('task').


NaiaraLopezRojo/globalIRmap documentation built on Dec. 17, 2021, 5:19 a.m.