tester | R Documentation |
Returns a procedure that can be used as performance
metric in
train.
tester(data, target, metric = ModelMetrics::auc, do.predict = TRUE)
data |
matrix or 3D array. The data to use for testing. |
target |
numeric vector. The target values to predict. |
metric |
binary function. A metric to compare actual values with predictions. |
do.predict |
logical. Should |
A unary function which, takes a ranger-like predictor and evaluates
metric
with target
and the predictions of predictor
on data
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.