Random Forest wrapper for CCI
wrapper_ranger(
formula,
data,
train_indices,
test_indices,
metric,
metricfunc = NULL,
nthread = 1,
mtry = NULL,
num.trees,
eps = 1e-15,
...
)A numeric value representing the performance metric of the model on the test set.
Model formula specifying the dependent and independent variables.
Data frame containing the dataset to be used for training and testing the model.
A vector of indices specifying the rows in data to be used as the training set.
A vector of indices specifying the rows in data to be used as the test set.
Type of metric ("RMSE", "Kappa" or "Log Loss")
Optional user-defined function to calculate a custom performance metric. This function should take the arguments data, model, and test_indices, and return a numeric value representing the performance metric.
Integer. The number of threads to use for parallel processing. Default is 1.
Integer. The number of variables to possibly split at in each node. Default is the square root of the number of columns in data.
Integer. The number of trees to grow in the random forest.
Small value to avoid log(0) in LogLoss calculations. Default is 1e-15.
Additional arguments passed to the ranger function.